[Ns-developers] Possible Bug in Ipv4L3Protocol

Mathieu Lacage mathieu.lacage at sophia.inria.fr
Thu Apr 8 05:05:36 PDT 2010


would you mind file a bug with the content of this email on
http://www.nsnam.org/bugzilla ?

thanks.

On Thu, 2010-04-08 at 20:00 +0800, Wang Danqi wrote:
> ns-3 version: The latest ns-3-dev version at the time I post this message.
> File: src/internet_stack/ipv4-l3-protocol.cc
> in function:
> void
> Ipv4L3Protocol::Send (Ptr<Packet> packet,
>             Ipv4Address source,
>             Ipv4Address destination,
>             uint8_t protocol,
>             Ptr<Ipv4Route> route)
> 
> Line:601
>   if (route && route->GetGateway () != Ipv4Address ())
> 
> Description:
> According to the comments, I think this line should be
>   if (route && route->GetGateway () == Ipv4Address ())
> 
> The comments are:
>   // 4) packet is not broadcast, and is passed in with a route entry
> but route->GetGateway is not set (e.g., on-demand)
> 
> However, currently this may not matter too much, since this condition
> is not implemented.
> 
> 




More information about the Ns-developers mailing list