X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FIp4Dxe%2FIp4Impl.c;fp=MdeModulePkg%2FUniversal%2FNetwork%2FIp4Dxe%2FIp4Impl.c;h=b1af5294fbc08d649231772f4069ed2a02bb68ea;hp=87aadf13e4703fab2a320548d47aff0561dd0342;hb=ecbd055d4e8d83b71578e8ec5e32b09e4e9d3a81;hpb=4423f0bc613b5451feaa546c3f330ad625d65638 diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c index 87aadf13e4..b1af5294fb 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c @@ -672,10 +672,14 @@ Ip4ConfigProtocol ( } // - // Add a route to this connected network in the route table + // Add a route to this connected network in the instance route table. // - Ip4AddRoute (IpInstance->RouteTable, Ip, Netmask, IP4_ALLZERO_ADDRESS); - + Ip4AddRoute ( + IpInstance->RouteTable, + Ip & Netmask, + Netmask, + IP4_ALLZERO_ADDRESS + ); } else { // // Use the default address. Check the state.