Hi all,
I have used the patch for blackhole attack for a VANET scenario and it works fine on ns3.30.1. I am interested in achieving alternate packet drop so i tried modifying the aodv-routing-protocol.cc ( attached is the modified file). I am using a variable flag for the same. I get the following error after it builds successfully.
assert failed. cond="socket", file=../src/aodv/model/aodv-routing-protocol.cc, line=1541
terminate called without an active exception
Command ['/home/gsr/ns-allinone-3.30.1/ns-3.30.1/build/scratch/blackhole', '--RngRun=3'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").
When i look for the details , i get to the point where i understand that the issue is here ;
Ptr<Socket> socket = FindSocketWithInterfaceAddress (toDst.GetInterface ());
NS_ASSERT (socket);
in SendReplyByIntermediateNode function. I am really lost after this. Would really appreciate any help/suggestions.