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.
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
Post #15, @rah12345 : Welcome to LQ.
Did you compile the changes in { aodv.cc aodv.h tcl/lib/files.tcl }
into the executable 'ns' ?
Your errors : Assuming that the above has been done successfully,
somebody may have a chance to answer, when you attach the tcl file,
you are trying to run with $ ns file.tcl .
Please attach as file.tcl.txt ( suffix .txt is a must ) :
The paper clip button in the 'Advanced Editor' is used for attachments.
And also explain which changes you made to ns-2.<version> :
A link to the modification instructions, please.
thank you for replying.
the tcl script is a normal 6 node wireless scenario... to make a node malicious i have added the following lines of code:$ns at 0.0 "[$n(4) set ragent_] malicious"
i am using ns2.35 installed correctly to my knowledge.
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
#16 < #15.
Quote:
have made the appropriate changes to the aodv.cc .h and .tcl files.
Please answer all the questions from post #16 :
1) Did you compile the changes in {aodv.cc aodv.h tcl/lib/files.tcl} into the executable 'ns'?
2) .. explain which changes you made to ns-2.35,
and tell which line numbers are the changes.
2a) Provide a link to the modification instructions, please.
And attach the modified files as aodv.cc.txt, aodv.h.txt,
+ all modified tcl/lib/files.tcl : .txt
I have compiled the codes into the ns.
i am getting errors:ns: _o110 malicious:
(_o110 cmd line 1)
invoked from within
"_o110 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 "_o110" line 2)
(SplitObject unknown line 2)
invoked from within
"_o110 malicious"
m also getting the prob in adding malicious node in ns2.35 in aodv protocol....i compiled d changes made and getting d error _o171 hacker 99:
(_o171 cmd line 1)
invoked from within
"_o171 cmd hacker 99"
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 "_o171" line 2)
(SplitObject unknown line 2)
invoked from within
"_o171 hacker 99"
num_nodes is set 20
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading scenario file...
Starting Simulation..
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
MAC_802_11: accessing MAC cache_ array out of range (src 21, dst 20, size 20)!
MAC_802_11: accessing MAC cache_ array out of range (src 20, dst 21, size 20)!
MAC_802_11: accessing MAC cache_ array out of range (src 21, dst 20, size 20)!
MAC_802_11: accessing MAC cache_ array out of range (src 20, dst 21, size 20)!
MAC_802_11: accessing MAC cache_ array out of range (src 21, dst 20, size 20)!
MAC_802_11: accessing MAC cache_ array out of range (src 20, dst 21, size 20)!
MAC_802_11: accessing MAC cache_ array out of range (src 21, dst 20, size 20)!
MAC_802_11: accessing MAC cache_ array out of range (src 20, dst 21, size 20)!
MAC_802_11: accessing MAC cache_ array out of range (src 20, dst 21, size 20)!
MAC_802_11: accessing MAC cache_ array out of range (src 21, dst 20, size 20)!
[suppressing additional MAC cache_ warnings]
node 18 is not defined... node 17 is not defined... node 16 is not defined... node 15 is not defined... node 14 is not defined... node 13 is not defined... node 12 is not defined... node 11 is not defined... node 10 is not defined... node 9 is not defined... node 8 is not defined... node 7 is not defined... node 6 is not defined... node 5 is not defined... node 4 is not defined... node 3 is not defined... node 2 is not defined... node 1 is not defined... node 0 is not defined... node 18 is not defined... node 17 is not defined... node 16 is not defined... node 15 is not defined... node 14 is not defined... node 13 is not defined... node 12 is not defined... node 11 is not defined... node 10 is not defined... node 9 is not defined... node 8 is not defined... node 7 is not defined... node 6 is not defined... node 5 is not defined... node 4 is not defined... node 3 is not defined... node 2 is not defined... node 1 is not defined... node 0 is not defined... NS EXITING...
I add a malicious node to AODV protocol (modified AODV.cc and AODV.h ). But when I perform my tcl file I dont see any modification in the result. where is the problem please am I must to modify other file in ns2 rather than AODV.cc and AODV.h or what ? Thank you very much in advance I need your help please.
my tcl file is attached below:
Thank you for your response,
I add a blackhole but when I perform my tcl file I dont see any change in the result between the case with attack and without attack. Please I need your help
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486
Rep:
← ref. #28.
Quote:
I add a blackhole
.
I dont see any change
Nothing is supposed to happen unless you add "blackhole" to :
ns-2.3x/tcl/lib/{ ns-<file(s)>.tcl },
... and compile the changes into the executable "ns-blackhole".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.