Bug 2717

Summary: Ipv4RoutingTableEntry default routes are incorrect
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: internetAssignee: Tommaso Pecorella <tommaso.pecorella>
Status: RESOLVED FIXED    
Severity: normal CC: ns-bugs
Priority: P3    
Version: unspecified   
Hardware: All   
OS: All   

Description Tom Henderson 2017-03-31 09:16:37 UTC
The constructor variant used by Ipv4RoutingTableEntry::CreateDefaultRoute () will return a mask of 255.255.255.255 instead of 0.0.0.0.  It is a simple fix.

-  return Ipv4RoutingTableEntry (Ipv4Address::GetZero (), nextHop, interface);
+  return Ipv4RoutingTableEntry (Ipv4Address::GetZero (), Ipv4Mask::GetZero (), nextHop, interface);
Comment 1 Tom Henderson 2017-03-31 09:21:53 UTC
pushed in changeset 12791:3cc9712b81ed