internet (fixes #2717) Fix Ipv4RoutingTableEntry default route

This commit is contained in:
Tom Henderson
2017-03-31 06:19:54 -07:00
parent b76b89539c
commit 1cff3b7f12
2 changed files with 2 additions and 1 deletions

View File

@@ -100,6 +100,7 @@ Bugs fixed
- Bug 2660 - TrafficControlHelper::Default should not configure internal queue sizes
- Bug 2665 - Ipv4RawSocket can not send packets to broadcast or multicast
- Bug 2671 - ArpCache::Entry::SetMacAddress is misspelled
- Bug 2717 - Fix mask generation for Ipv4RoutingTableEntry::CreateDefaultRoute
Known issues
------------

View File

@@ -207,7 +207,7 @@ Ipv4RoutingTableEntry::CreateDefaultRoute (Ipv4Address nextHop,
uint32_t interface)
{
NS_LOG_FUNCTION_NOARGS ();
return Ipv4RoutingTableEntry (Ipv4Address::GetZero (), nextHop, interface);
return Ipv4RoutingTableEntry (Ipv4Address::GetZero (), Ipv4Mask::GetZero (), nextHop, interface);
}