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) |
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 - |
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..??
|
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 - |
All times are GMT -5. The time now is 12:40 AM. |