i want to make multipath routing in dsr having same length.
just starting with the simple one.
i knw that the route reply n route request are in mobicache.cc file
got the info from
http://www.skynet.ie/~bryan/dsr_faq/#multipath_DSR
i would like to ask for the favour dat suppose in the scenario i have 2 path of same length.
and want to have two route discovered n saved in the cache.
can u gve me a edited version of the mobicache.cc file
or gve me some help regarding this.!!
void
MobiCache::addRoute(const Path& route, Time t, const ID& who_from)
// add this route to the cache (presumably we did a route request
// to find this route and don't want to lose it)
// who_from is the id of the routes provider
{
Path rt;
if(pre_addRoute(route, rt, t, who_from) == 0)
return;
// must call addRoute before checkRoute
int prefix_len = 0;
#ifdef DSR_CACHE_STATS
Path *p = primary_cache->addRoute(rt, prefix_len);
checkRoute(p, ACTION_ADD_ROUTE, prefix_len);
#else
(void) primary_cache->addRoute(rt, prefix_len);
}