- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- AODV Forward function
Mustafa
Participant
Hi all,
In the AODV::forward(aodv_rt_entry *rt, Packet *p, double delay) function
what this line did
Scheduler::instance().schedule(target_, p,
0.01 * Random::uniform());
and where the code or line in this function in which the packet send for all neighbors.
best regards.
CharlesPandian
Keymaster
The line
Scheduler::instance().schedule(target_, p,
0.01 * Random::uniform());
will Schedule the packet for transmission.
The packet will be sent to all the neighbors if it is marked (in the header part) as a broadcast packet.