LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-25-2015, 08:35 AM   #1
anand755
Member
 
Registered: Nov 2014
Posts: 34

Rep: Reputation: Disabled
ns2.34 help with multipath dsr


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);
}
 
  


Reply

Tags
multipath-ns2, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run DSR in - ns2? cchan9213 Linux - Newbie 1 07-13-2014 04:49 PM
How to run DSR in - ns2? cchan9213 Linux - Wireless Networking 1 07-13-2014 03:48 AM
Multipath Design using DSR routing protocol in ns2 tandel kavita Linux - Wireless Networking 2 03-12-2013 03:45 PM
implementing DSR in NS2 ritoban87 Linux - Networking 3 05-24-2012 05:15 AM
adding fields to DSR in ns2.34 khubalkar Programming 0 05-22-2012 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration