Hi all, I am working on blackhole attack in ns3.
I have downloaded the patch from
http://mohittahiliani.blogspot.in/.
I follow the instructions given in the above blogspot.
When i patch the file,
it got reply as hunk failed 1,2,3,4,5 and hunk 1, 2 failed
and again when i give ./waf command
../src/aodv/model/aodv-routing-protocol.cc: In static member function ‘static ns3::TypeId ns3::aodv::RoutingProtocol::GetTypeId()’:
../src/aodv/model/aodv-routing-protocol.cc:300:42: error: ‘SetMaliciousEnable’ is not a member of ‘ns3::aodv::RoutingProtocol’
MakeBooleanAccessor (&RoutingProtocol::SetMaliciousEnable, &RoutingProtocol::GetMaliciousEnable),
^
../src/aodv/model/aodv-routing-protocol.cc:300:80: error: ‘GetMaliciousEnable’ is not a member of ‘ns3::aodv::RoutingProtocol’
MakeBooleanAccessor (&RoutingProtocol::SetMaliciousEnable, &RoutingProtocol::GetMaliciousEnable),
^
../src/aodv/model/aodv-routing-protocol.cc: In member function ‘void ns3::aodv::RoutingProtocol::RecvReply(ns3::Ptr<ns3::Packet>, ns3::Ipv4Address, ns3::Ipv4Address)’:
../src/aodv/model/aodv-routing-protocol.cc:1566:23: error: return-statement with a value, in function returning 'void' [-fpermissive]
return false;
^
I got the above error.
Your help is appreciated