(bug 867) Minor bug in Ipv4L3Protocol::Send()
authorDanqi Wang <beyondwdq@gmail.com>
Fri, 16 Apr 2010 15:55:03 -0700
changeset 6232 cdf770714461
parent 6231 6f5fdc2104d7
child 6233 22d9d9d3c563
(bug 867) Minor bug in Ipv4L3Protocol::Send()
src/internet-stack/ipv4-l3-protocol.cc
--- a/src/internet-stack/ipv4-l3-protocol.cc	Fri Apr 16 15:29:40 2010 -0700
+++ b/src/internet-stack/ipv4-l3-protocol.cc	Fri Apr 16 15:55:03 2010 -0700
@@ -598,7 +598,7 @@
       return; 
     } 
   // 4) packet is not broadcast, and is passed in with a route entry but route->GetGateway is not set (e.g., on-demand)
-  if (route && route->GetGateway () != Ipv4Address ())
+  if (route && route->GetGateway () == Ipv4Address ())
     {
       // This could arise because the synchronous RouteOutput() call
       // returned to the transport protocol with a source address but