Bug 2717 - Ipv4RoutingTableEntry default routes are incorrect
Ipv4RoutingTableEntry default routes are incorrect
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: internet
unspecified
All All
: P3 normal
Assigned To: Tommaso Pecorella
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-31 09:16 UTC by Tom Henderson
Modified: 2017-03-31 09:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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