konstantinus and tommaso, i have question for you guys
this code from mohit blogspot..
this code for node is malicious, it creates false routing table entry having sequence number much higher than that in RREQ message and hop count as 1. Malicious node itself sends the RREP message so that the route will be established through malicious node.
how can i change this code for aodv send RREQ Flood?
can i get help?
if(IsMalicious)
{
Ptr<NetDevice> dev = m_ipv4->GetNetDevice (m_ipv4->GetInterfaceForAddress (receiver));
RoutingTableEntry falseToDst(dev,dst,true,rreqHeader.GetDstSeqno()+100,m_ipv4->GetAddress (m_ipv4->GetInterfaceForAddress (receiver),0),1,dst,ActiveRouteTimeout);
SendReplyByIntermediateNode (falseToDst, toOrigin, rreqHeader.GetGratiousRrep ());
return;
}
i have suggestion for this code
if(IsMalicious)
{
Ptr<NetDevice> dev = m_ipv4->GetNetDevice (m_ipv4->GetInterfaceForAddress (receiver));
RoutingTableEntry
falseToDst(dev,dst,true,rreqHeader+100.GetDstSeqno(),m_ipv4->GetAddress
m_ipv4->GetInterfaceForAddress
(receiver),nwifis),nwifis,dst,ActiveRouteTimeout);
SendReplyByIntermediateNode (falseToDst, toOrigin, rreqHeader.GetGratiousRrep ());
return;
}