LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2011, 01:16 PM   #1
kunalshdr
LQ Newbie
 
Registered: Nov 2011
Posts: 2

Rep: Reputation: Disabled
MANET simulations on ns2.34 problem (ubuntu 10.04)


Hi,

I am using ns-2.34 on Ubuntu 10.04. I have implemented CONFIDANT technique for detecting misbehaving nodes which uses dsr. I have copied all my source code files in dsr folder in ns-2.34. Now, when I am trying to complile my source files, I get the following errors:

Compiling: /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:61:20: error: object.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:62:19: error: agent.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:63:19: error: trace.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:64:20: error: packet.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:65:26: error: dsr-priqueue.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:66:17: error: mac.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:67:24: error: mobilenode.h: No such file or directory
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:73,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:64:17: error: phy.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:65:38: error: scheduler.h: No such file or directory
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:4:22: error: detector.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:3:20: error: random.h: No such file or directory
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:66,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:69,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:72: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:82: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:83: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:84: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:114: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:115: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:116: error: ‘u_int16_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:168: error: ISO C++ forbids declaration of ‘Packet’ with no type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:168: error: expected ‘,’ or ‘...’ before ‘*’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:196: error: ISO C++ forbids declaration of ‘u_int16_t’ with no type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:196: error: ‘u_int16_t’ declared as an ‘inline’ field
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:196: error: expected ‘;’ before ‘&’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:197: error: expected ‘;’ before ‘inline’
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:250: error: ISO C++ forbids declaration of ‘nsaddr_t’ with no type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:250: error: ‘nsaddr_t’ declared as an ‘inline’ field
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:250: error: expected ‘;’ before ‘&’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:255: error: expected ‘;’ before ‘inline’
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:260: error: ‘nsaddr_t’ has not been declared
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h: In static member function ‘static hdr_sr* hdr_sr::access(int)’:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:169: error: ‘p’ was not declared in this scope
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h: In member function ‘void hdr_sr::append_addr(int, int)’:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:263: error: ‘struct sr_addr’ has no member named ‘addr’
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:69,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h: At global scope:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:76: error: ‘NS_AF_NONE’ was not declared in this scope
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:76: error: ‘NS_AF_ILINK’ was not declared in this scope
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:76: error: ‘NS_AF_INET’ was not declared in this scope
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:101: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h: In constructor ‘ID::ID(const sr_addr&)’:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:91: error: ‘const struct sr_addr’ has no member named ‘addr’
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h: In member function ‘void ID::fillSRAddr(sr_addr&)’:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:99: error: ‘struct sr_addr’ has no member named ‘addr’
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:70,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h: At global scope:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h:67: error: ISO C++ forbids declaration of ‘Packet’ with no type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h:67: error: expected ‘;’ before ‘*’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h:69: error: expected ‘)’ before ‘*’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h: In constructor ‘SRPacket::SRPacket()’:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h:70: error: class ‘SRPacket’ does not have any field named ‘pkt’
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:71,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/routecache.h: At global scope:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/routecache.h:73: error: expected class-name before ‘{’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/routecache.h:127: error: ISO C++ forbids declaration of ‘Trace’ with no type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/routecache.h:127: error: expected ‘;’ before ‘*’ token
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:73,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:74: error: ‘u_int16_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:83: error: ‘u_int16_t’ has not been declared
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:84: error: ‘u_int16_t’ has not been declared
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:92: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:93: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:94: error: ‘u_int16_t’ does not name a type
Process terminated with status 1 (0 minutes, 1 seconds)
50 errors, 0 warnings


Kindly help. Thank you.
 
Old 11-09-2011, 02:33 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
Welcome to LQ.
Quote:
error: object.h: No such file or ..
error: agent.h: No such file or ..
error: trace.h: No such file or ..
etc. etc.
Generally about missing headers : Individual files cannot be compiled
in ns-2.xx. Solution : Add new "files.cc" to the Makefile or Makefile.in
as files.o in section OBJ_CC ( Starts at line 164 in ns-2.34/Makefile.)

Like : dsr/file1.o dsr/file2.o dsr/file3.o

..

Last edited by knudfl; 11-09-2011 at 02:35 PM.
 
Old 12-01-2011, 06:33 AM   #3
IPMPLS
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
Hello,
After I add my file.o to the makefile, should I make the whole ns2 from begining? because it lasted 1 month to install ns2 and i fear if I make it from scratch it doesn't work.
 
Old 12-01-2011, 07:56 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
#3.

Usually 'cd ns-allinone-2.34/ns-2.34/ && make clean && make' would do.


Quote:
.. it lasted 1 month to install ns2
The compile (./install) time is usually about 10-15 minutes.

.
 
Old 12-01-2011, 08:14 AM   #5
IPMPLS
LQ Newbie
 
Registered: Dec 2011
Posts: 2

Rep: Reputation: Disabled
Thanks for your attention and reply.
Actually I installed ns2 under cygwin and because I have a lot of problems and bugs dring installation it took me 1 month. So is there any way to just make for example the file.cc by make? I mean not do a fresh install of whole ns2.
 
Old 12-02-2011, 02:11 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,684

Rep: Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284Reputation: 3284
When file.o is added to ns-allinone-2.34/ns-2.34/Makefile,
section OBJ_CC, e.g. line 331, the commands are like shown in post #4 :
'cd ns-allinone-2.34/ns-2.34/ && make clean && make'
 
Old 01-31-2012, 06:37 AM   #7
ziens2
LQ Newbie
 
Registered: Jan 2012
Posts: 2

Rep: Reputation: Disabled
kunalshdr..did you has been successfully integrate CONFIDANT inside NS-2?
I also faced the same problem as you..I hope that you can share the solution with me..
 
Old 04-21-2012, 02:52 AM   #8
ratna
LQ Newbie
 
Registered: Apr 2012
Posts: 2

Rep: Reputation: Disabled
help regarding CONFIDANT

Quote:
Originally Posted by kunalshdr View Post
Hi,

I am using ns-2.34 on Ubuntu 10.04. I have implemented CONFIDANT technique for detecting misbehaving nodes which uses dsr. I have copied all my source code files in dsr folder in ns-2.34. Now, when I am trying to complile my source files, I get the following errors:

Compiling: /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:61:20: error: object.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:62:19: error: agent.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:63:19: error: trace.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:64:20: error: packet.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:65:26: error: dsr-priqueue.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:66:17: error: mac.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:67:24: error: mobilenode.h: No such file or directory
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:73,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:64:17: error: phy.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:65:38: error: scheduler.h: No such file or directory
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:4:22: error: detector.h: No such file or directory
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:3:20: error: random.h: No such file or directory
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:66,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:69,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:72: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:82: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:83: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:84: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:114: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:115: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:116: error: ‘u_int16_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:168: error: ISO C++ forbids declaration of ‘Packet’ with no type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:168: error: expected ‘,’ or ‘...’ before ‘*’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:196: error: ISO C++ forbids declaration of ‘u_int16_t’ with no type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:196: error: ‘u_int16_t’ declared as an ‘inline’ field
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:196: error: expected ‘;’ before ‘&’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:197: error: expected ‘;’ before ‘inline’
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:250: error: ISO C++ forbids declaration of ‘nsaddr_t’ with no type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:250: error: ‘nsaddr_t’ declared as an ‘inline’ field
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:250: error: expected ‘;’ before ‘&’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:255: error: expected ‘;’ before ‘inline’
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:260: error: ‘nsaddr_t’ has not been declared
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h: In static member function ‘static hdr_sr* hdr_sr::access(int)’:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:169: error: ‘p’ was not declared in this scope
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h: In member function ‘void hdr_sr::append_addr(int, int)’:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/hdr_sr.h:263: error: ‘struct sr_addr’ has no member named ‘addr’
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:69,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h: At global scope:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:76: error: ‘NS_AF_NONE’ was not declared in this scope
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:76: error: ‘NS_AF_ILINK’ was not declared in this scope
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:76: error: ‘NS_AF_INET’ was not declared in this scope
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:101: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h: In constructor ‘ID::ID(const sr_addr&)’:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:91: error: ‘const struct sr_addr’ has no member named ‘addr’
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h: In member function ‘void ID::fillSRAddr(sr_addr&)’:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/path.h:99: error: ‘struct sr_addr’ has no member named ‘addr’
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:70,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h: At global scope:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h:67: error: ISO C++ forbids declaration of ‘Packet’ with no type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h:67: error: expected ‘;’ before ‘*’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h:69: error: expected ‘)’ before ‘*’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h: In constructor ‘SRPacket::SRPacket()’:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/srpacket.h:70: error: class ‘SRPacket’ does not have any field named ‘pkt’
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:71,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/routecache.h: At global scope:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/routecache.h:73: error: expected class-name before ‘{’ token
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/routecache.h:127: error: ISO C++ forbids declaration of ‘Trace’ with no type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/routecache.h:127: error: expected ‘;’ before ‘*’ token
In file included from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/dsragent.h:73,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.h:3,
from /home/kunal/ns-allinone-2.34/ns-2.34/dsr/monitor.cc:1:
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:74: error: ‘u_int16_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:83: error: ‘u_int16_t’ has not been declared
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:84: error: ‘u_int16_t’ has not been declared
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:92: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:93: error: ‘nsaddr_t’ does not name a type
/home/kunal/ns-allinone-2.34/ns-2.34/dsr/flowstruct.h:94: error: ‘u_int16_t’ does not name a type
Process terminated with status 1 (0 minutes, 1 seconds)
50 errors, 0 warnings


Kindly help. Thank you.
hello,

i m also working with misbehavior node management in dsr protocol.u said that u are working with CONFIDANT.if you can please send me the code of CONFIDANT,it will be of great help to me..as i m new to ns-2......thanks u in anticipation....plz help
 
  


Reply

Tags
ns-2.34-leach


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NS2 simulator in manet raji27 Linux - Software 7 02-24-2013 09:44 AM
Interesting awk files for ns2 mobile simulations unodior Linux - Software 10 05-27-2012 04:11 PM
manet in ns2-wormhole attack(modifying aodv) indumit18 Linux - Software 2 02-02-2012 03:12 AM
NS2 simulator in manet raji27 Linux - Software 2 09-13-2011 10:38 PM
searching for ns2 codes based on MANET sukrutha Linux - Newbie 1 06-18-2011 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration