How to add timer in aodv using ns2
问题 At aodv When the node receive route request it will check if it has valid route to the destination, if it has no valid route it will rebroadcast the route request. I want to add timer before the node rebroadcast the route request.During the timer time if the node receive RREQ with the same ID (that means the node receive the RREQ twice ) then discard the RREQ otherwise rebroadcast the RREQ. I don’t know how to write the code of this part. The code of timer 1. The timer was defined in aodv.h