hi friends,i m trying to simulate a route invasion attack in aodv. i changed 
the recieve rreq packet routine keeping in mind that node=5 attacker node =0 
source node =4 destination. total nodes=7.in this attack node 5 will modify the 
rreq packet and rebroadcast it again. but in simulation node 5 is not running 
this routine. can't figure out why. plz help me.all nodes will follow normal 
aodv.cc routines. but attacker will also follow this routine.implementation is 
done in the same aodv.cc file./*  * Can't reply. So forward the  Route 
Request  */ else if (index==5){if ((rq->rq_src ==0) && (rq->rq_dst == 4)) 
{      ih->saddr() = index;   ih->daddr() = IP_BROADCAST;   rq->rq_bcast_id = 
rq->rq_bcast_id+5;    rq->rq_hop_count += 1;   // Maximum sequence number seen 
en route      rq->rq_src_seqno = rq->rq_src_seqno+6 ;        if (rt)     
rq->rq_dst_seqno = max(rt->rt_seqno, rq->rq_dst_seqno)+6;   else        
rq->rq_dst_seqno=
 rq->rq_dst_seqno+6;      forward((aodv_rt_entry*) 0, p, DELAY);
 }}
else {   ih->saddr() = index;   ih->daddr() = IP_BROADCAST;   rq->rq_hop_count 
+= 1;   // Maximum sequence number seen en route   if (rt) rq->rq_dst_seqno = 
max(rt->rt_seqno, rq->rq_dst_seqno);   forward((aodv_rt_entry*) 0, p, DELAY); }


      

Reply via email to