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.
|
 |
|
05-19-2013, 02:38 PM
|
#16
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
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.
-
|
|
|
05-19-2013, 04:45 PM
|
#17
|
LQ Newbie
Registered: May 2013
Posts: 3
Rep: 
|
@knudfl
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.
|
|
|
05-19-2013, 10:44 PM
|
#18
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
#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
-
Last edited by knudfl; 05-20-2013 at 04:34 AM.
|
|
|
05-20-2013, 07:00 AM
|
#19
|
LQ Newbie
Registered: Apr 2013
Posts: 17
Original Poster
Rep: 
|
hi
it may you send bad parameter from tcl file ("malicious")
|
|
|
05-21-2013, 09:25 AM
|
#20
|
LQ Newbie
Registered: May 2013
Posts: 3
Rep: 
|
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"
|
|
|
05-22-2013, 06:14 AM
|
#21
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
# 20 . Please read aodv.cc, line 84 :
if(strcmp(argv[1], "hacker") == 0) {
malicious = true;
The tcl file, aodv-?.tcl :
Edit line 139 to :
$ns at 0.0 "[$n(4) set ragent_] hacker"
-
Last edited by knudfl; 05-22-2013 at 06:26 AM.
|
|
|
06-03-2013, 02:42 PM
|
#22
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
@saeed.m :
So far I haven't got your files, "blackholeAODV version 2012" to work.
But I got some older files (2005) from @k_kimo, ref. this thread :
http://www.linuxquestions.org/questi...cl-4175460864/
I added your 'ns-lib.tcl', and a 'packet.h' with blackholeAODV entries.
Repacked to blackholeaodv2005-ns235-patch.tar.gz :
http://www.linuxquestions.org/questi...-4175460864/#4
-
|
|
|
09-08-2013, 01:54 PM
|
#23
|
LQ Newbie
Registered: Aug 2013
Posts: 1
Rep: 
|
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"
ny idea???
|
|
|
12-24-2013, 05:13 AM
|
#25
|
LQ Newbie
Registered: Dec 2013
Posts: 1
Rep: 
|
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...
|
|
|
02-16-2015, 07:46 AM
|
#26
|
Member
Registered: Dec 2014
Posts: 36
Rep: 
|
Hi,
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:
|
|
|
02-17-2015, 06:03 AM
|
#28
|
Member
Registered: Dec 2014
Posts: 36
Rep: 
|
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
|
|
|
02-17-2015, 11:21 AM
|
#29
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520
|
← 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".
-
|
|
|
All times are GMT -5. The time now is 07:59 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
|
|