LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 05-06-2013, 05:19 AM   #1
k_kimo
LQ Newbie
 
Registered: May 2013
Posts: 2

Rep: Reputation: Disabled
error while executing blackholeAODV tcl


hi guys,

i'm trying to program an attack in adhoc networks, i use blackhole in AODV but i got an error while testing "ns blackholeAODV.tcl" as follow:

invalid command name "Agent/rtproto/blackholeAODV"
while executing
"Agent/rtproto/blackholeAODV" instproc init args {
$self next $args
}
(file "blackholeaodv.tcl" line 19)

are there any patch before or it's working directly? if yes, please leave me the link of patch.

please help me.
 
Old 05-07-2013, 03:30 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Which version of ns2 ? ns-allinone-2.34 ?
Which OS are you using ? Name, version, architecture, please.
Like CentOS 6 -32bits(i686), Ubuntu 12.04 -32bits, etc.

Which package "blackholeaodv" are you using ? Like blackholeaodv.tar.gz.
Please upload <blackholeaodv.tar.gz> to Google Docs.
And also the "blackholeaodv-manual", please.
... Then I will have a look at it.
( I have a version of blackholeaodv with no rtproto protocol.)

-
 
Old 05-07-2013, 04:49 AM   #3
k_kimo
LQ Newbie
 
Registered: May 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
hello knudfl,

i'm working on Ubuntu 11.04 - 32 bits, the version of NS2 is NS-2.35.
i used a script of blackholeAODV without patching NS2, i think it's the mistake.
this is the package that i used to work with blackholeAODV.tar.gz, link: "http://www.mediafire.com/?vo972acpnfisvoz"

waiting for your help, please.
thank you.
 
Old 06-03-2013, 02:27 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Finally found some time to test your files, and examples.tcl.

They are now repacked to a "patch package" blackholeaodv2005-ns235-patch.tar.gz
https://docs.google.com/file/d/0B7S2...it?usp=sharing

Five examples "blackholeAODV*.tcl that works: blackholeaodv2005-examples.tar.gz
https://docs.google.com/file/d/0B7S2...it?usp=sharing

-
 
1 members found this post helpful.
Old 06-26-2013, 09:56 PM   #5
tunerhuei
LQ Newbie
 
Registered: Mar 2013
Location: Taiwan
Posts: 5

Rep: Reputation: Disabled
how to use the blackhole patch in command line?
thanks
 
Old 06-27-2013, 03:07 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 5, @ tunerhuei :

$ tar xvf ns-allinone-2.35.tar.gz
$ cd ns-allinone-2.35/
$ tar xvf blackholeaodv2005-ns235-patch.tar.gz
Build example : $ export CC=gcc-4.4 CXX=g++-4.4 && ./install


Actually blackholeaodv2005-ns235-patch.tar.gz is not a real patch,
it's a folder "ns-2.35" containing the edited files.
Anyway, you can always open / read a patch or a "patch-look-alike" package,
to know the destination of the files. Thus knowing how to use "the patch".

-
 
  


Reply

Tags
blackholeaodv, ns2



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
Floating point exception error while executing tcl with ns2 ines8989 Linux - Software 2 04-22-2013 05:31 PM
Floating point exception error while executing tcl with ns2 ines8989 Linux - Software 0 04-09-2013 01:44 PM
I am getting the following error while executing the drop1.tcl program. Plz help me t divya84 Linux - Newbie 1 10-10-2012 09:57 AM
invalid command type "llType" error occuring when executing a tcl script in ns2.34 madhu.bm Linux - Software 1 05-04-2012 05:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 06:27 PM.

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
Open Source Consulting | Domain Registration