Somebody knows how to modify local_repair() function?
In local repair mechanism when a link failure happens on an active route,
the first node upstream of that break (the predecessor) chooses to repair
the link locally. I wish to choose ANYTHING node upstream of that break and
no only THE predecessor.
*AODV::local_rt_repair(aodv_rt_entry *rt, Packet *p) {
#ifdef DEBUG
fprintf(stderr,"%s: Dst - %d\n", __FUNCTION__, rt->rt_dst);
#endif
// Buffer the packet
rqueue.enque(p);
// mark the route as under repair
rt->rt_flags = RTF_IN_REPAIR;
sendRequest(rt->rt_dst);
// set up a timer interrupt
Scheduler::instance().schedule(&lrtimer, p->copy(), rt->rt_req_timeout);
}
*
I wish before *rqueue.enque(p);* to be called, the predecessor node bring
down the route for to third predecessor node, for example, and only after
that make *rqueue.enque(p); *then after do send requests. Anybody help me?*
**
*