Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-01-2013, 01:17 AM
|
#1
|
LQ Newbie
Registered: Apr 2013
Posts: 17
Rep: 
|
implementing new protocol in ns2.35
hi all
i am trying to implement new AODV protocol in ns2.35 simulator to simulate black hole attack .i have changed the following files
ns-agent.tcl and Makefile and after all make command issued to rebuild NS but when i trying to use new agent(blackholeAODV) the system giving the notify that the agent have been not created.
please help me to solve this problem .
thanks.
|
|
|
04-01-2013, 01:42 AM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
Welcome to LQ.
Please show the line that you edited or added in the Makefile.
And also show the line number for that line.
|
|
|
04-01-2013, 01:55 AM
|
#3
|
LQ Newbie
Registered: Apr 2013
Posts: 17
Original Poster
Rep: 
|
my makefile changes is below
blackholeaodv/blackholeaodv_logs.o blackholeaodv/blackholeaodv.o \
blackholeaodv/blackholeaodv_rtable.o blackholeaodv/blackholeaodv_rqueue.o \
i have been add these lines at 278 of my makefile
|
|
|
04-01-2013, 02:07 AM
|
#4
|
LQ Newbie
Registered: Apr 2013
Posts: 17
Original Poster
Rep: 
|
the output that system show me is below

|
|
|
04-01-2013, 03:43 AM
|
#5
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
#4
Quote:
invalid command name "Agent/blackholeAODV"
|
Means that no blackholeAODV was compiled into the 'ns' executable.
? Should something be added to ns-lib.tcl ?
http://imraan-prrec.blogspot.dk/2012...k-in-aodv.html
Could you possibly upload the "blackholeAODV" code to Google Docs ?
blackholeAODV.zip ?
And please also tell which OS you are using :
Like Ubuntu 12.04-amd64, Fedora 17-32bit, etc.
Also : Please show a link to the file 'bhAODV.tcl'.
? http://www.btechnos.com/2012/05/tcl-...blackhole.html
> blackholeaodv.tcl ?
-
Last edited by knudfl; 04-01-2013 at 03:46 AM.
|
|
|
04-01-2013, 05:14 AM
|
#6
|
LQ Newbie
Registered: Apr 2013
Posts: 17
Original Poster
Rep: 
|
i am using fedora 2.6.23.1-42. fc8 32bit
the link below contain all files that you maybe need
http://rapidshare.com/files/26674483...20question.zip
also i was in mistake at first post, i have changed the ns-lib file that i did say you ns-agent
the changes that i am making in the file ns-lib are below
blackholeAODV {
set ragent [$self create-blackholeaodv-agent $node]
}
Simulator instproc create-blackholeaodv-agent { node } {
set ragent [new Agent/blackholeAODV [$node node-addr]]
$self at 0.0 "$ragent start" # start BEACON/HELLO Messages
$node set ragent_ $ragent
return $ragent
}
|
|
|
04-01-2013, 08:15 AM
|
#7
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 6 : OK, where did you get the files in the "blackholeaodv/" folder ?
A link and a package name please.
Quote:
I have changed the ns-lib file that I did say you ns-agent
the changes that I am making in the file ns-lib are below
|
Not quite clear. Please use the real file names like
tcl/lib/ns-lib.tcl and tcl/lib/ns-agent.tcl
And : Please attach the edited file as ns-lib.tcl.txt
Attachments : The 'paper clip tool' in the Advanced Editor.
Or upload the file.
( This file is missing in the package "with all files".)
About the Makefile.in : All "blackhole*" text is missing. Should be like:
<TAB>blackholeaodv/blackholeaodv_logs.o blackholeaodv/blackholeaodv.o \
<TAB>blackholeaodv/blackholeaodv_rtable.o blackholeaodv/blackholeaodv_rqueue.o \
-
|
|
|
04-01-2013, 03:34 PM
|
#8
|
LQ Newbie
Registered: Apr 2013
Posts: 17
Original Poster
Rep: 
|
i have created a folder with the name of blackholeaodv at the below directory
ns-allinone-2.35\ns-2.35\
Quote:
I have changed the ns-lib file that I did say you ns-agent
the changes that I am making in the file ns-lib are below
|
my purpose about top sentence is that: i changed only the file tcl/lib/ns-lib.tcl .
you can download the tcl/lib/ns-lib.tcl that i have apply some change from the below link.
http://rapidshare.com/files/3107167795/ns-lib.tcl
i note you that i have not any problem during the build. that is when i have clear the object files(*.obj) from ns-allinone-2.35\ns-2.35\blackholeaodv and reusing the make command the system created them again.
ns-2.35 have three makefile(makefile, makefile.in, makefile.vc) should i change all these three files our if not witch must be changed?
|
|
|
04-01-2013, 05:21 PM
|
#9
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 8.
Quote:
ns-2.35 have three makefile(makefile, makefile.in, ...
|
The file names are Makefile, Makefile.in : Upper case M.
( "makefile.vc" : visual c++ only.)
Default is : Edit the Makefile.in, and then : ./configure && make.
Quote:
ns-allinone-2.35\ns-2.35\blackholeaodv
|
Windows© ? You said Fedora : Then it is ns-allinone-2.35/ns-2.35/blackholeaodv.
I.e. no back slashes can be used this way in Fedora.
→ → Not a valid link.
Says : Download not available. Download permission denied by uploader.
-
|
|
|
04-02-2013, 11:35 AM
|
#10
|
LQ Newbie
Registered: Apr 2013
Posts: 17
Original Poster
Rep: 
|
sorry i haven't apply required permissions to download but no i changed download required permission.
now you can download the file from below link
https://rapidshare.com/files/3107167795/ns-lib.tcl
|
|
|
04-03-2013, 12:34 AM
|
#11
|
LQ Newbie
Registered: Apr 2013
Posts: 17
Original Poster
Rep: 
|
i have not use before the ./configure command , so when i issue this command the result of last lines is in below,

Last edited by saeed.m; 04-03-2013 at 12:35 AM.
|
|
|
04-03-2013, 02:42 AM
|
#12
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 11.
No errors. You can then run 'make'.
|
|
|
04-03-2013, 06:22 AM
|
#13
|
LQ Newbie
Registered: Apr 2013
Posts: 17
Original Poster
Rep: 
|
#12
i have run the make command. but now when i try to use my new agent the invalid command name "Agent/blackholeAODV" error now exist.
|
|
|
04-03-2013, 08:11 AM
|
#14
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 13 .
Quote:
invalid command name "Agent/blackholeAODV"
|
That's the result I get too. And so far no solution.
|
|
|
05-19-2013, 01:39 PM
|
#15
|
LQ Newbie
Registered: May 2013
Posts: 3
Rep: 
|
aodv modification
hi
i have added a malicious node to my AODV network. have made the appropriate changes to the aodv.cc .h and .tcl files.on running following error is produced:
ns: _o66 malicious:
(_o66 cmd line 1)
invoked from within
"_o66 cmd malicious"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o66" line 2)
(SplitObject unknown line 2)
invoked from within
"_o66 malicious"
wat went wrong?
Last edited by rah12345; 05-19-2013 at 01:40 PM.
|
|
|
All times are GMT -5. The time now is 12:44 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|