Hello My object is to discard the RREQ in aodv.cc file if a condition is satisfied, I try this part in aodv.cc, but I don't know the technique to achieve it, please can you help me? /* * Can't reply. So forward the Route Request */ else { if(mycondition()){ 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); } else { printf("%d No cas \n", index); Packet::free(p);
} } } All the best Lyx