Bugzilla – Bug 867
Minor bug in Ipv4L3Protocol::Send()
Last modified: 2010-04-16 18:56:26 UTC
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.
changeset: cdf770714461 thanks!