[Ns-bugs] [Bug 651] Ipv4StaticRouting doesn't work stand-alone: can't deliver local packets
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Thu Aug 6 06:36:54 PDT 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=651
Tom Henderson <tomh at tomh.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tomh at tomh.org
--- Comment #1 from Tom Henderson <tomh at tomh.org> 2009-08-06 09:36:53 EDT ---
(In reply to comment #0)
> After a while trying to understand why the packets targeted at a specific
> ns3::Node were being looped, I found the following comment in
> src/routing/static-routing/ipv4-static-routing.cc:
>
> // XXX this method not robust enough to work outside of ListRouting context
> // because it will not perform local delivery
> bool
> Ipv4StaticRouting::RouteInput (Ptr<const Packet> p, const Ipv4Header
> &ipHeader, Ptr<const NetDevice> idev,
> UnicastForwardCallback ucb,
> MulticastForwardCallback mcb,
> LocalDeliverCallback lcb, ErrorCallback ecb)
>
> When I wrapped the Ipv4StaticRouting with ns3::Ipv4ListRouting, it started to
> work. I think either the code should not allow to have static routing without
> list routing, or the static routing should be fixed.
>
Note that this is also true of OLSR and GlobalRouting. I haven't tried to
solve this yet, but I would like to try to see whether we can just copy over
the needed methods from ListRouting to these other protocols.
--
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