LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-08-2015, 04:46 AM   #1
shan@559
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Rep: Reputation: Disabled
ns2 black hole attack code runing problem


I installed ns2 using (sudo apt-get install ns2)
I hav code for black hole attack in aodv manet and while trying to run it on ns2 Im getting the fallowing error message
please tell me how to fix this..??

INITIALIZE THE LIST xListHead

(_o58 cmd line 1)
invoked from within
"_o58 cmd addr"
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 "_o58" line 2)
(SplitObject unknown line 2)
invoked from within
"_o58 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns node"
invoked from within
"set node_(2) [$ns node]"
(file "atk3.tcl" line 55)

Last edited by shan@559; 04-08-2015 at 04:56 AM.
 
Old 04-08-2015, 07:52 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Welcome to LQ.

Two ways to add 'blackholeaodv' ( Requires ns-allinone-2.3x ) :

1) Mohit Tahiliani`s patch
http://mohittahiliani.blogspot.in/20...k-in-ns-2.html

2) The patch blackholeaodv2013-ns235_1.patch


Blackholeaodv INFO
. http://www.linuxquestions.org/questions/tags/blackhole/
. http://www.linuxquestions.org/questi...-4175535427/#3
. http://network-simulator-ns-2.7690.n...hole&sort=date
. https://groups.google.com/forum/?fro...hole|sort:date


-
 
Old 04-08-2015, 10:49 AM   #3
shan@559
LQ Newbie
 
Registered: Apr 2015
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanq, But I did not install it using ns2-allinone insted I installed it directly from terminal using (sudo apt-get install ns2), any solution for dis..??
 
Old 04-08-2015, 11:08 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Re #3.

Solution : Please follow the links in post #2, and read some posts.

And install the ns2 build prerequisites :
$ sudo apt-get update && sudo apt-get install g++ automake libtool libxmu-dev

A build example, post #38 here ...
http://www.linuxquestions.org/questi...163/page3.html

-
 
  


Reply

Tags
blackhole, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
implementing black hole attack simulation in ns2.35 saeed.m Linux - Networking 12 12-16-2015 08:14 AM
Problem in simulating Black Hole Attack in AODV Protocol through NS2 in FC8 shyan Linux - Newbie 3 02-17-2015 04:21 PM
ns2: implementation of black hole attack in TORA protocol venkatadri Linux - Software 6 09-02-2014 11:21 AM
Help with black hole Attack in manets using ns2 akhi_02 Linux - Wireless Networking 1 02-18-2014 08:08 AM


All times are GMT -5. The time now is 08:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration