I have an error while implementing malicious node in ns2 for the AODV
routing protocol
$ns at 0.0 "[$node_(0) set ragent_] hacker"
I have an error while implementing malicious node in ns2 for the AODV
routing protocol
$ns at 0.0 "[$node_(0) set ragent_] hacker"
Verify your node creation code. Error message itself very clear.
It seems like, you are not defining it as node_(0).
ns at 0.0 "[$node_(0) set ragent_] hacker"
Depends what you have defined in aodv.cc . ( ``hacker´ or `malicious´.)
Example, aodv-malicious_ns235.patch line 8 - 10 :
+if(strcmp(argv[1], "hacker") == 0) {
+malicious = true;
+return TCL_OK;
Malicious INFO http://www.linuxquestions.org/questions/tags/malicious/ , and https://groups.google.com/forum/?fromgroups#!searchin/ns-users/malicious|sort:date/ns-users/meRJq7W0ZkQ/zV3WcZHlAQAJ → → 10/11/14
Try this. Use malicious or hacker as you defined.
$ns at 0.0 "[$n1 set ragent_] malicious