[ns] (null) - invalid packet type (SIP) -- HELP URGENT PLEASE!!!!!

2006-06-04 Thread lewapryb

I tried to add SIP protocol to wireless simulation
Unluckily I always get the same error
(null) - invalid packet type (SIP).
Could You tell me what the problem is???
Please help
Paul


-- 
GE Money Banku proponuje szeroką ofertę kredytów hipotecznych - niskie 
oprocentowanie, niskie raty, niskie opłaty i wiele innych korzyści. Teraz 
kredyt hipoteczny w CHF bez opłaty za wcześniejszą spłatę! 
http://www.gazeta.pl/gebank



[ns] random values??????

2006-06-03 Thread lewapryb

Hi everyone!!
I want to make a simulation with random times of appearing calls. Do
You know how to make a random value?
Thanx for all
Paul


-- 
GE Money Banku proponuje szeroką ofertę kredytów hipotecznych - niskie 
oprocentowanie, niskie raty, niskie opłaty i wiele innych korzyści. Teraz 
kredyt hipoteczny w CHF bez opłaty za wcześniejszą spłatę! 
http://www.gazeta.pl/gebank



[ns] many agents?

2006-05-30 Thread lewapryb

Hello everyone!
I am trying to simulate the traffic in wireless simulation.
I mean every node is starting making connection at another time, and
for exactly period of time..
Can anyone tell me how to do this kind?
Should I use special agents??
Thanks for everything!
Paul





[ns] segmentation fault

2006-05-10 Thread lewapryb

Hi everyone!
At last managed to install ns-2.1b9a from:
ns-allinone-2.1b9a-gcc32.tar.gz

Then I wanted to add gprs patch but it is not original made by Richa
Jain but a later version (they wrote it's better :) )
It is from: gprs-gcc32.tar.gz

I made as they wrote in readme file and ./install again.
And - wow - ns is working!!!  but gprs not

I still got the same: 
num_nodes is set 10
Segmentation fault

What can I do
anyone cope with that GPRS








[ns] problems with installing ns2.1b9a

2006-05-09 Thread lewapryb


Hi everyone!
I am trying to install ns-2.1b9a but after some errors I managed to
solve I encountered the one I can not. It is:



In file included from classifier/classifier-hier.h:36,
 from routing/rtmodule.h:33,
 from common/node.h:61,
 from mac/channel.h:47,
 from mac/phy.h:60,
 from common/mobilenode.h:57,
 from mobile/shadowing-vis.cc:33:
routing/route.h:46:1: warning: "INFINITY" redefined
In file included from /usr/include/math.h:40,
 from mobile/shadowing-vis.cc:26:
/usr/include/bits/mathdef.h:35:1: warning: this is the location of
the previous definition
mobile/shadowing-vis.cc: In member function `void
ShadowingVis::loadImg(const
   char*)':
mobile/shadowing-vis.cc:147: error: `cout' undeclared (first use
this function)
mobile/shadowing-vis.cc:147: error: (Each undeclared identifier is
reported
   only once for each function it appears in.)
mobile/shadowing-vis.cc:147: error: `endl' undeclared (first use
this function)
mobile/shadowing-vis.cc:169: error: no matching function for call to `
   std::basic_ifstream >::get(unsigned
char&)'
/usr/include/c++/3.3.2/bits/istream.tcc:514: error: candidates are:
typename
   _Traits::int_type std::basic_istream<_CharT, _Traits>::get()
[with _CharT =
   char, _Traits = std::char_traits]
/usr/include/c++/3.3.2/bits/istream.tcc:546: error:
   std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
   _Traits>::get(_CharT&) [with _CharT = char, _Traits =
   std::char_traits]
/usr/include/c++/3.3.2/bits/istream.tcc:580: error:
   std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
   _Traits>::get(_CharT*, int, _CharT) [with _CharT = char, _Traits =
   std::char_traits]
/usr/include/c++/3.3.2/istream:328: error:
   std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
   _Traits>::get(_CharT*, int) [with _CharT = char, _Traits =
   std::char_traits]
/usr/include/c++/3.3.2/bits/istream.tcc:622: error:
   std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
   _Traits>::get(std::basic_streambuf<_CharT, _Traits>&, _CharT)
[with _CharT =
   char, _Traits = std::char_traits]
/usr/include/c++/3.3.2/istream:361: error:
   std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
   _Traits>::get(std::basic_streambuf<_CharT, _Traits>&) [with
_CharT = char,
   _Traits = std::char_traits]
mobile/shadowing-vis.cc:174: error: no matching function for call to `
   std::basic_ifstream >::get(unsigned
char&)'
/usr/include/c++/3.3.2/bits/istream.tcc:514: error: candidates are:
typename
   _Traits::int_type std::basic_istream<_CharT, _Traits>::get()
[with _CharT =
   char, _Traits = std::char_traits]
/usr/include/c++/3.3.2/bits/istream.tcc:546: error:
   std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
   _Traits>::get(_CharT&) [with _CharT = char, _Traits =
   std::char_traits]
/usr/include/c++/3.3.2/bits/istream.tcc:580: error:
   std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
   _Traits>::get(_CharT*, int, _CharT) [with _CharT = char, _Traits =
   std::char_traits]
/usr/include/c++/3.3.2/istream:328: error:
   std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
   _Traits>::get(_CharT*, int) [with _CharT = char, _Traits =
   std::char_traits]
/usr/include/c++/3.3.2/bits/istream.tcc:622: error:
   std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
   _Traits>::get(std::basic_streambuf<_CharT, _Traits>&, _CharT)
[with _CharT =
   char, _Traits = std::char_traits]
/usr/include/c++/3.3.2/istream:361: error:
   std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
   _Traits>::get(std::basic_streambuf<_CharT, _Traits>&) [with
_CharT = char,
   _Traits = std::char_traits]
make: *** [mobile/shadowing-vis.o] Błąd 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

Does anyone knows how to help me?
I have fc1.
Thanx alot!
Paul





[ns] gprs problem with patching - please help!!

2006-05-08 Thread lewapryb

Hello!
I installed ns-2.1b7a , I added the extensions and I am trying to
patch the gprs_patch but I always get:

can't find file to patch at input line 33
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|Only in ns-richa-gprs/ns-allinone-2.1b7a/: bin
|Only in ns-richa-gprs/ns-allinone-2.1b7a/cweb: common.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/cweb: ctangle
|Only in ns-richa-gprs/ns-allinone-2.1b7a/cweb: ctangle.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/cweb: cweave
|Only in ns-richa-gprs/ns-allinone-2.1b7a/cweb: cweave.c
|Only in ns-richa-gprs/ns-allinone-2.1b7a/cweb: cweave.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/bin: itm
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/bin: sgb2alt
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/bin: sgb2comns
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/bin: sgb2hierns
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/bin: sgb2ns
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/lib: libgb.a
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/sgb2ns: sgb2comns.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/sgb2ns: sgb2hierns.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/sgb2ns: sgb2ns.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/src: dfs.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/src: edriver.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/src: geog.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/src: itm.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/src: sgb2alt.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/gt-itm/src: ts.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/: include
|Only in ns-richa-gprs/ns-allinone-2.1b7a/: lib
|Only in ns-richa-gprs/ns-allinone-2.1b7a/: man
|Only in ns-richa-gprs/ns-allinone-2.1b7a/nam-1.0a9: Makefile
|Only in ns-richa-gprs/ns-allinone-2.1b7a/nam-1.0a9: address.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/nam-1.0a9: agent.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/nam-1.0a9: anetmodel.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/nam-1.0a9: animation.o
|Only in ns-richa-gprs/ns-allinone-2.1b7a/nam-1.0a9: animator.o
|diff -r ns2b7a-original/ns-allinone-2.1b7a/nam-1.0a9/autoconf.h
ns-richa-gprs/ns-allinone-2.1b7a/nam-1.0a9/autoconf.h
--
File to patch:

what should I do?
should I put everything to other folder?
should I modify patch?
should I patch it in special way?
Could You tell me how did You cope with that problem???
Thanx alot
Paul





[ns] problem while adding gprs

2006-05-07 Thread lewapryb

Hi everyone!
I managed to install ns-2.1b7a on fc1 and now I am trying to add
gprs extension made by Richa Jain.
I copied .cc and .h files to /ns-allinone-2.1b7a/ns-2.1b7a
and .tcl files to  /ns-allinone-2.1b7a/ns-2.1b7a/tcl/lib

I made ./install and I got:

In file included from mac.h:46,
 from phy.h:62,
 from mobilenode.h:57,
 from mac-gprs.cc:39:
route.h:46:1: warning: "INFINITY" redefined
In file included from /usr/include/math.h:40,
 from random.h:40,
 from mac-gprs.cc:38:
/usr/include/bits/mathdef.h:35:1: warning: this is the location of
the previous definition
mac-gprs.cc:569:17: missing terminating " character
mac-gprs.cc: In member function `void MacGprs::ms_recv(Packet*,
Handler*)':
mac-gprs.cc:570: error: syntax error before `=' token
mac-gprs.cc:570: error: stray '\' in program
mac-gprs.cc:570:68: missing terminating " character
mac-gprs.cc:612:18: missing terminating " character
mac-gprs.cc:613: error: syntax error before `=' token
mac-gprs.cc:613: error: stray '\' in program
mac-gprs.cc:613:49: missing terminating " character
make: *** [mac-gprs.o] Error 1
Ns make failed!
See http://www-mash.CS.Berkeley.EDU/ns/ns-problems.html for problems

Does anyone knows what to do??
Thanx a lot!





[ns] best linux??

2006-05-05 Thread lewapryb

Hi everyone!
Could You tell me which linux is best for installing ns-2.1b7a?
I have FC4 and it doesn't work. Maybe changing linux , installing
old version help??
Thanx  a lot!
Paul





[ns] why noone wants to help me? :(

2006-05-01 Thread lewapryb

I'm sorry that I am writing in such way, but I really need help. I
am trying to install ns-2.1b7a because I want to patch gprs wrote by
Richa Jain.
I tried installing it and I have such error:

tclcl-mappings.h: In static member function ‘static int
TclObjectHelper::dispatch_(void*, Tcl_Interp*, int, char**)’:
tclcl-mappings.h:51: error: incomplete type ‘Tcl’ used in nested
name specifier
tclcl-mappings.h:52: error: invalid use of undefined type ‘struct 
Tcl’
tclcl-mappings.h:41: error: forward declaration of ‘struct Tcl’
tclcl-mappings.h:57: error: invalid use of undefined type ‘struct 
Tcl’
tclcl-mappings.h:41: error: forward declaration of ‘struct Tcl’
make: *** [Tcl.o] Error 1
tclcl-1.0b10 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

I don't know what to do? I have fc4. I cannot patch gprs to ns-2.29
beacuse it doesn't work.
Please help me
Real thanks!!!





[ns] 2.1b7a installing problem

2006-04-04 Thread lewapryb

Hi everyone!
I tried to install ns 2.1b7a on Fedora 4. I still got the same problem:

tclcl-mappings.h: In static member function ?static int
TclObjectHelper::dispatch_(void*, Tcl_Interp*, int, char**)?:
tclcl-mappings.h:51: error: incomplete type ?Tcl? used in nested
name specifier
tclcl-mappings.h:52: error: invalid use of undefined type ?struct Tcl?
tclcl-mappings.h:41: error: forward declaration of ?struct Tcl?
tclcl-mappings.h:57: error: invalid use of undefined type ?struct Tcl?
tclcl-mappings.h:41: error: forward declaration of ?struct Tcl?
make: *** [Tcl.o] Error 1
tclcl-1.0b10 make failed! Exiting ...

What should I do??? 
Could You help me?? 






[ns] ns-allinone-2.1b7a installation problem

2006-03-20 Thread lewapryb

Hi everyone!
I have been figthed with ns older versions.
But now I do not have the idea what can I do:
During ns-allinone-2.1b7a installation I have:

tclcl-mappings.h: In static member function ‘static int
TclObjectHelper::dispatch_(void*, Tcl_Interp*, int, char**)’:
tclcl-mappings.h:51: error: incomplete type ‘Tcl’ used in nested
name specifier
tclcl-mappings.h:52: error: invalid use of undefined type ‘struct 
Tcl’
tclcl-mappings.h:41: error: forward declaration of ‘struct Tcl’
tclcl-mappings.h:57: error: invalid use of undefined type ‘struct 
Tcl’
tclcl-mappings.h:41: error: forward declaration of ‘struct Tcl’
make: *** [Tcl.o] Error 1
tclcl-1.0b10 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

What sould I do??
Thanks for all!!





[ns] gprs and ns

2006-03-19 Thread lewapryb

Hello Everyone!
I am fighting for some time with gprs made by Richa Jain.
Unluckily I am all the time loosing :(
I tried ns-2.29 - it didn't work
I tried to install older versions but there always problems.
Maybe my system is wrong, I gor fedore 4.
Can anyone help me???
I am loosing hope to make it work any time.:(





[ns] ns-allinone-2.1b7a - installation problem

2006-03-16 Thread lewapryb

Hi everyone!
I tried to install an old version of ns because, I want to make gprs
work in it. I tried to install ns-allinone-2.1b7a and I got:

tclcl-mappings.h: In static member function ‘static int
TclObjectHelper::dispatch_(void*, Tcl_Interp*, int, char**)’:
tclcl-mappings.h:51: error: incomplete type ‘Tcl’ used in nested
name specifier
tclcl-mappings.h:52: error: invalid use of undefined type ‘struct 
Tcl’
tclcl-mappings.h:41: error: forward declaration of ‘struct Tcl’
tclcl-mappings.h:57: error: invalid use of undefined type ‘struct 
Tcl’
tclcl-mappings.h:41: error: forward declaration of ‘struct Tcl’

Does anyone know , what is wrong???

Maybe it won't be necessery if anyone knows the solution to install
ns with gprs part (this part is gprs-072501-2.1b7a.tar.gz made by
Richa Jain)
Please help me!!






[ns] problems with wireless

2006-01-07 Thread lewapryb

 tried to simulate wireless-mitf.tcl and I got sth like that:  
  
 localhost# 
ns /usr/ns-allinone-2.29/ns-2.29/tcl/ex/wireless-mitf.tcl  
 num_nodes is set 2  
 INITIALIZE THE LIST xListHead  
 Starting Simulation...  
 channel.cc:sendUp - Calc highestAntennaZ_ and distCST_  
 highestAntennaZ_ = 1.5, distCST_ = 550.0  
 SORTING LISTS ...DONE!  
 NS EXITING...  
 localhost#  
  
 Can You tell me why I can't see anything? 
And how Can I see anything??