/** @file\r
This code implements the IP4Config and NicIp4Config protocols.\r
\r
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 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<BR>\r
// Signal the IP4 to run the auto configuration again\r
//\r
if (Reconfig && (Instance->ReconfigEvent != NULL)) {\r
+ //\r
+ // When NicConfig is NULL, NIC IP4 configuration parameter is removed,\r
+ // the auto configuration process should stop running the configuration\r
+ // policy for the EFI IPv4 Protocol driver.\r
+ //\r
+ if (NicConfig == NULL) {\r
+ Instance->DoNotStart = TRUE;\r
+ }\r
+\r
Status = gBS->SignalEvent (Instance->ReconfigEvent);\r
DispatchDpc ();\r
}\r
Instance->NicConfig = EfiNicIp4ConfigGetInfo (Instance);\r
\r
if (Instance->NicConfig == NULL) {\r
+ if (Instance->DoNotStart) {\r
+ Instance->DoNotStart = FALSE;\r
+ Status = EFI_SUCCESS;\r
+ goto ON_EXIT;\r
+ }\r
+\r
Source = IP4_CONFIG_SOURCE_DHCP;\r
} else {\r
Source = Instance->NicConfig->Source;\r