]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1. Fixed a bug to make sure IP,Mask,Gateway survives across rest in case "ifconfig...
authorhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 28 Apr 2011 02:45:19 +0000 (02:45 +0000)
committerhhuan13 <hhuan13@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 28 Apr 2011 02:45:19 +0000 (02:45 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11603 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c

index 9ed9ae82a89bba43aa4cfe8c4ef46e576eca0c2b..f8aa51c8cd7097a0ec9c05ad0f0b71c9fc8e3c92 100644 (file)
@@ -308,19 +308,7 @@ Ip4ConfigDriverBindingStart (
   //\r
   NicConfig = Ip4ConfigReadVariable (Instance);\r
   if (NicConfig != NULL) {\r
-    if (NicConfig->Perment) {\r
-      if (NicConfig->Source == IP4_CONFIG_SOURCE_STATIC) {\r
-        //\r
-        // Don't modify the permanent static configuration.\r
-        //\r
-      } else if (NicConfig->Source == IP4_CONFIG_SOURCE_DHCP) {\r
-        //\r
-        // Remove the previous acquired DHCP parameters.\r
-        //\r
-        ZeroMem (&NicConfig->Ip4Info, sizeof (EFI_IP4_IPCONFIG_DATA));\r
-        Ip4ConfigWriteVariable (Instance, NicConfig);\r
-      }\r
-    } else {\r
+    if (!NicConfig->Perment) {\r
       //\r
       // Delete the non-permanent configuration.\r
       //\r