]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c
MdeModulePkg/Ip4Dxe: Sync the direct route entry setting.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Impl.c
index 87aadf13e4703fab2a320548d47aff0561dd0342..b1af5294fbc08d649231772f4069ed2a02bb68ea 100644 (file)
@@ -672,10 +672,14 @@ Ip4ConfigProtocol (
     }\r
 \r
     //\r
     }\r
 \r
     //\r
-    // Add a route to this connected network in the route table\r
+    // Add a route to this connected network in the instance route table.\r
     //\r
     //\r
-    Ip4AddRoute (IpInstance->RouteTable, Ip, Netmask, IP4_ALLZERO_ADDRESS);\r
-\r
+    Ip4AddRoute (\r
+      IpInstance->RouteTable, \r
+      Ip & Netmask, \r
+      Netmask, \r
+      IP4_ALLZERO_ADDRESS\r
+      );\r
   } else {\r
     //\r
     // Use the default address. Check the state.\r
   } else {\r
     //\r
     // Use the default address. Check the state.\r