[ns] help with errors undefined type 'const struct Packet'

2008-08-26 Thread Kubi Kay

Hi everyone,
i have been trying to implement some security encryption and decryption to
the AODV protocol.  i have followed the tutorials on how to add new
protocols and am currently stuck on some errors that i get when am trying to
run the make command. the errors am getting are

./common/ip.h:75: error: invalid use of undefined type 'const struct Packet'
common/object.h:44: error: forward declaration of 'const struct Packet'
./apps/Security_packet.h: In static member function 'static
hdr_security_packet* hdr_security_packet::access(const Packet*)':
./apps/Security_packet.h:27: error: invalid use of undefined type 'const
struct Packet'
common/object.h:44: error: forward declaration of 'const struct Packet'
./apps/Security_packet.h: At global scope:
./apps/Security_packet.h:31: error: expected class-name before '{' token
./apps/Security_packet.h:31: warning: 'class SecuritypacketAgent' has
virtual functions but non-virtual destructor


Anyone with any idea on how to correct that error. Any help is greatly
appreciated


[ns] help with errors undefined type 'const struct Packet'

2008-08-26 Thread Kubi Kay

Hi everyone,
i have been trying to implement some security encryption and decryption to
the AODV protocol.  i have followed the tutorials on how to add new
protocols and am currently stuck on some errors that i get when am trying to
run the make command. the errors am getting are

./common/ip.h:75: error: invalid use of undefined type 'const struct Packet'
common/object.h:44: error: forward declaration of 'const struct Packet'
./apps/Security_packet.h: In static member function 'static
hdr_security_packet* hdr_security_packet::access(const Packet*)':
./apps/Security_packet.h:27: error: invalid use of undefined type 'const
struct Packet'
common/object.h:44: error: forward declaration of 'const struct Packet'
./apps/Security_packet.h: At global scope:
./apps/Security_packet.h:31: error: expected class-name before '{' token
./apps/Security_packet.h:31: warning: 'class SecuritypacketAgent' has
virtual functions but non-virtual destructor


Anyone with any idea on how to correct that error. Any help is greatly
appreciated


[ns] problem concerning cxx

2008-08-26 Thread eng Rony

hello everybody
I have a problem concerning cxx
when i type make. the following is my code:
 
[EMAIL PROTECTED]:~$ cd ns-allinone-2.33
 [EMAIL PROTECTED]:~/ns-allinone-2.33$ cd ns-2.33
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ make
 make: CXX@: Command not found
 make: *** [common/packet.o] Error 127
 [EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$

plz. i want your helps

Eng Rony



  


[ns] Segmentation fault

2008-08-26 Thread mohammad shojaeinia

hi ns-users
i run trust bsed DSR(written by Lennart conard) and see some error like
follow
help me
thanks alot
Error on opening file: 23.dtmf.dtmf in TrustManager::load()
Node :23 is evil in Trust DSR
i: 24
value of AVR_ACK_TIME_OUT_VAL: 0.07
value of MAXWAIT: 0.01
value of ACKRECEIVED: 1
value of NOACKRECEIVED: -1
value of DATAPACKETRECEIVED:  0.7
value of S1_DEFAULTTRUSTVALUE: -0.4
value of S2_DEFAULTTRUSTVALUE: -0.4
value of DEFAULTUNKNOWNVAL: -0.4
value of NOEXPERIENCES: -0.4
value of MAX_NR_OF_EXP: 5
value of NROFEVILNODES: 10
and the number was24.dtmf
Opening file: 24.dtmf for loading...
Error on opening file: 24.dtmf.dtmf in TrustManager::load()
Node :24 is evil in Trust DSR
and the number was24.dtmf
Opening file: 24.dtmf for loading...
Error on opening file: 24.dtmf.dtmf in TrustManager::load()
Node :24 is evil in Trust DSR
value of AVR_ACK_TIME_OUT_VAL: 0.07
value of MAXWAIT: 0.01
value of ACKRECEIVED: 1
value of NOACKRECEIVED: -1
value of DATAPACKETRECEIVED:  0.7
value of S1_DEFAULTTRUSTVALUE: -0.4
value of S2_DEFAULTTRUSTVALUE: -0.4
value of DEFAULTUNKNOWNVAL: -0.4
value of NOEXPERIENCES: -0.4
value of MAX_NR_OF_EXP: 5
value of NROFEVILNODES: 10
and the number was25.dtmf
Opening file: 25.dtmf for loading...
Error on opening file: 25.dtmf.dtmf in TrustManager::load()
Node :25 is evil in Trust DSR
and the number was25.dtmf
Opening file: 25.dtmf for loading...
Error on opening file: 25.dtmf.dtmf in TrustManager::load()
Node :25 is evil in Trust DSR
value of AVR_ACK_TIME_OUT_VAL: 0.07
value of MAXWAIT: 0.01
value of ACKRECEIVED: 1
value of NOACKRECEIVED: -1
value of DATAPACKETRECEIVED:  0.7
value of S1_DEFAULTTRUSTVALUE: -0.4
value of S2_DEFAULTTRUSTVALUE: -0.4
value of DEFAULTUNKNOWNVAL: -0.4
value of NOEXPERIENCES: -0.4
value of MAX_NR_OF_EXP: 5
value of NROFEVILNODES: 10
and the number was26.dtmf
Opening file: 26.dtmf for loading...


[ns] how to use trust and delay factors for path selection in DSR cache periodically?

2008-08-26 Thread mohammad shojaeinia

hi ns-users
i want to use trust and delay factors for path selection  stored in
mobicache for DSR protocol periodically.
how can i do this?
help me
thanks
Best regard


[ns] help me

2008-08-26 Thread arvin ashavan

hi to all.
please guaide me about indtall ns-allinone-2.26 in redhat 9.
i wnat install it but dont be work for me!
please say me step tp step of install.
tanx


  


[ns] Res: problem concerning cxx

2008-08-26 Thread Breno Caetano

whats your distribution?
if your distribution is debian-based linux try ./install script.
regards

 
 Breno Caetano da Silva
Bacharel em Ciências da Computação - UFPI
Mestrando em Engenharia Elétrica
Escola de Engenharia de São Carlos - EESC
Universidade de São Paulo
Email: [EMAIL PROTECTED]
[EMAIL PROTECTED]
Fone: (+5516) 81449079
(+5516) 33738149



- Mensagem original 
De: eng Rony [EMAIL PROTECTED]
Para: Daniel Rosenthal [EMAIL PROTECTED]; ns-users@ISI.EDU
Enviadas: Terça-feira, 26 de Agosto de 2008 14:07:30
Assunto: Re: [ns] problem concerning cxx




Eng Rony

i apply ur suggest, and the following appears, what can i do

[EMAIL PROTECTED]:~$ cd ns-allinone-2.33
[EMAIL PROTECTED]:~/ns-allinone-2.33$ cd ns-2.33
[EMAIL PROTECTED]:~/ns-allinone-2.33/ns-2.33$ ./configure  make
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... no
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking should use STL... yes
checking for tcl.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for tclsh8.4.18... no
checking for tclsh8.4... ../bin/tclsh8.4
checking for tk.h... -I../include
checking for libtk8.4... -L../lib -ltk8.4
checking for tk.tcl... ../lib/tk8.4
checking for otcl.h... -I../otcl
checking for libotcl1.13... -L../otcl -lotcl
checking for tclcl.h... -I../tclcl-1.19
checking for libtclcl... -L../tclcl-1.19 -ltclcl
checking for tcl2c++... ../tclcl-1.19
checking for X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for libtcldbg... no
checking dmalloc... not requested with --with-dmalloc
checking for perl... /usr/bin
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking net/ethernet.h usability... yes
checking net/ethernet.h presence... yes
checking for net/ethernet.h... yes
checking for main in -lm... yes
checking for bcopy... yes
checking for bzero... yes
checking for fesetprecision... no
checking for feenableexcept... yes
checking for getrusage... yes
checking for sbrk... yes
checking for snprintf... yes
checking return type of random... long
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_char... yes
checking for u_int... yes
checking for strtoq... yes
checking for strtoll... yes
checking for long... yes
checking size of long... 4
checking for __int64_t... no
checking for long long... yes
checking for int64_t... yes
checking which kind of 64-bit int to use... int64_t
checking system version (for dynamic loading)... Linux-2.6.22-14-generic
checking for dlopen in -ldl... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for ns library name... libns.so
checking for struct ether_header... found
checking for struct ether_addr... found
checking for 

[ns] Fw: Emulation, Multiple Applications on a single node

2008-08-26 Thread Ahmed, Noman

Hi All,
 
I am using NS-2 Emulation setup provided by Magdeburg University Germany.
 
I can successfully stream a video from node1 to node2 and node3. Now I want to 
send two video streams running on node1 and received on node2 and node3. I 
built a setup ,I can send two streams from node1 and can separately receive 
them on node2 and node3 but if I try to do it simultaneously then one video 
fails.
 
Some body knows whether this emulation setup supports to run more than one 
application on a single node. If yes please send me an example code.
 

thanks a lot.
 Noman Ahmed


Send instant messages to your online friends http://uk.messenger.yahoo.com