[Ns-bugs] [Bug 867] New: Minor bug in Ipv4L3Protocol::Send()
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Thu Apr 8 05:26:57 PDT 2010
http://www.nsnam.org/bugzilla/show_bug.cgi?id=867
Summary: Minor bug in Ipv4L3Protocol::Send()
Product: ns-3
Version: pre-release
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P5
Component: internet-stack
AssignedTo: ns-bugs at isi.edu
ReportedBy: beyondwdq at gmail.com
Estimated Hours: 0.0
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.
--
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