Linux - SoftwareThis 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.
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.
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.
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
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
}
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
# 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 \
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?
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
# 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.
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"
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.