]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix issue that ifconfig –c cannot clear IP address details.
authortye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 29 Oct 2012 05:20:18 +0000 (05:20 +0000)
committertye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 29 Oct 2012 05:20:18 +0000 (05:20 +0000)
Signed-off-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Fan Jeff <jeff.fan@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13885 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigNv.c

index 58c4c1a02cd05ae856c85ac3b1946de8c3ca6070..2878863adea4bde4876e14f940d8e79eecd6249d 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Helper functions for configuring or getting the parameters relating to Ip4.\r
 \r
-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -215,7 +215,7 @@ Ip4ConfigConvertIfrNvDataToDeviceConfigData (
     //\r
     ZeroMem (&Ip4ConfigInstance->Ip4ConfigCallbackInfo, sizeof (IP4_SETTING_INFO));\r
 \r
-    Status = EfiNicIp4ConfigSetInfo (Ip4ConfigInstance, NULL, TRUE);\r
+    Status = EfiNicIp4ConfigSetInfo (Ip4ConfigInstance, NULL, FALSE);\r
     if (Status == EFI_NOT_FOUND) {\r
       return EFI_SUCCESS;\r
     }\r
@@ -629,7 +629,7 @@ Ip4DeviceRouteConfig (
         FreePool (NicInfo);\r
       } else {\r
         ZeroMem (&Ip4ConfigInstance->Ip4ConfigCallbackInfo, sizeof (IP4_SETTING_INFO));\r
-        Status = EfiNicIp4ConfigSetInfo (Ip4ConfigInstance, NULL, TRUE);\r
+        Status = EfiNicIp4ConfigSetInfo (Ip4ConfigInstance, NULL, FALSE);\r
       }\r
     }\r
 \r