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 09-10-2012, 10:38 AM   #1
avinash20
LQ Newbie
 
Registered: Sep 2012
Posts: 8

Rep: Reputation: Disabled
errror in ns2.34 in red hat linux5


while runing tcl i got error can somebody please tell me about this
ns:
[code omitted because of length]
: invalid command name "Agent/mUDP"
while executing
"Agent/mUDP set packetSize_ 1000"
 
Old 09-10-2012, 10:56 AM   #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,629

Rep: Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267
May be you forgot to compile "mudp" into the binary 'ns' ?

http://140.116.164.80/~smallko/ns2/tool_en.htm
Quote ...
Quote:
5. Add the “measure/mudp.o measure/mudpsink.o “ in the OBJ_CC of Makefile.
6. Add “Agent/mUDP set packetSize_ 1000” in the ns-default.tcl.
(ns-default.tcl is under ~/ns-allinone-2.28/ns-2.28/tcl/lib)
7. make clean ; make
 
1 members found this post helpful.
Old 09-10-2012, 11:30 AM   #3
avinash20
LQ Newbie
 
Registered: Sep 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
thanks sir for your reply actually im working on implementing grayhole attack in manet, i had made changes in various files of ns directory according to tutorial http://www.evignan4u.com/2012/03/add...n-network.html
but in tutorial there is no information about editin cmu-trace.cc and h files so i want to ask you that whether is nit important to make changes in these file as well if it is then how,
when i run make command there is no error but there is no object created in grayhole folder in ns directory and at the time of running tcl in bin i get the above error error, sir kindly you can guide me in this as im new to ns

ns:
[code omitted because of length]
: invalid command name "Agent/mUDP"
while executing
"Agent/mUDP set packetSize_ 1000"
 
Old 09-10-2012, 12:48 PM   #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,629

Rep: Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267Reputation: 3267
There is no "mudp" in ns-2.34 by default, AFAIK.

Either you have added something else than the "grayhole attack modifications",
or it is an error in your tcl script.
 
  


Reply

Tags
mudp, ns2, udp


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
Problem with red hat linux5.0 mallesh Linux - Newbie 2 06-30-2011 10:22 AM
I cant recompile my patch in ns2 on red hat v5 JawadZaheer Linux - Software 0 12-22-2007 11:31 PM
LXer: Red Hat Summit 2007, Day 2: Red Hat Exchange and interesting presentations LXer Syndicated Linux News 0 05-11-2007 07:32 PM


All times are GMT -5. The time now is 02:28 AM.

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