[Ns-bugs] [Bug 406] GlobalRouteManager behaviour after Ipv4 interface SetDown and SetUp procedure

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Tue Nov 11 22:31:49 PST 2008


http://www.nsnam.org/bugzilla/show_bug.cgi?id=406





--- Comment #6 from Tom Henderson <tomh at tomh.org>  2008-11-12 01:31:49 EDT ---

> 
> Attached is a patch that we used. I am not sure how sound this strategy is?
> 
> However, this does not help with the case where there are multiple paths
> between a source destination pair. When one of the paths becomes unavailable,
> we are not able to make the simulator use the alternative path with the global
> routing manager.
> 

The reason the patch will not completely work is that it doesn't delete the
existing routes.  Try adding a loop that deletes everything first, before
reinitializing things.

for (uint32_t i = 0; i < ipv4->GetNRoutes(); i++)
  {
    ipv4->RemoveRoute (i)
  }


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list