[Ns-bugs] [Bug 432] tracker item for /32 discussion

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Tue Dec 2 22:46:46 PST 2008


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





--- Comment #1 from Tom Henderson <tomh at tomh.org>  2008-12-03 01:46:46 EDT ---
The attached test programs test the following 3-node topology:
// (a.a.a.a/32)A<--x.x.x.0/30-->B<--y.y.y.0/30-->C(c.c.c.c/32)

There are two test programs:
- static-routing-slash32.cc
- global-routing-slash32.cc

The second program requires a small patch in global routing code, to allow for
a stub device with Ipv4Interface but with no channel:

diff -r fce227ad1f13 src/routing/global-routing/global-router-interface.cc
--- a/src/routing/global-routing/global-router-interface.cc     Tue Dec 02
12:15:42 2008 -0800
+++ b/src/routing/global-routing/global-router-interface.cc     Tue Dec 02
22:44:27 2008 -0800
@@ -1277,6 +1277,11 @@ GlobalRouter::AnotherRouterOnLink (Ptr<N
   NS_LOG_FUNCTION (nd << allowRecursion);

   Ptr<Channel> ch = nd->GetChannel();
+  if (!ch)
+    {
+      // It may be that this net device is a stub device, without a channel
+      return false;
+    }
   uint32_t nDevices = ch->GetNDevices();
   NS_ASSERT (nDevices);


otherwise, both programs run against the current ns-3-dev repository.


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


More information about the Ns-bugs mailing list