mirror of https://github.com/acidanthera/audk.git
Fix issue that ifconfig –c cannot clear IP address details.
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
This commit is contained in:
parent
76cd9a03e5
commit
f7a5d58c57
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
Helper functions for configuring or getting the parameters relating to Ip4.
|
Helper functions for configuring or getting the parameters relating to Ip4.
|
||||||
|
|
||||||
Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -215,7 +215,7 @@ Ip4ConfigConvertIfrNvDataToDeviceConfigData (
|
||||||
//
|
//
|
||||||
ZeroMem (&Ip4ConfigInstance->Ip4ConfigCallbackInfo, sizeof (IP4_SETTING_INFO));
|
ZeroMem (&Ip4ConfigInstance->Ip4ConfigCallbackInfo, sizeof (IP4_SETTING_INFO));
|
||||||
|
|
||||||
Status = EfiNicIp4ConfigSetInfo (Ip4ConfigInstance, NULL, TRUE);
|
Status = EfiNicIp4ConfigSetInfo (Ip4ConfigInstance, NULL, FALSE);
|
||||||
if (Status == EFI_NOT_FOUND) {
|
if (Status == EFI_NOT_FOUND) {
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
@ -629,7 +629,7 @@ Ip4DeviceRouteConfig (
|
||||||
FreePool (NicInfo);
|
FreePool (NicInfo);
|
||||||
} else {
|
} else {
|
||||||
ZeroMem (&Ip4ConfigInstance->Ip4ConfigCallbackInfo, sizeof (IP4_SETTING_INFO));
|
ZeroMem (&Ip4ConfigInstance->Ip4ConfigCallbackInfo, sizeof (IP4_SETTING_INFO));
|
||||||
Status = EfiNicIp4ConfigSetInfo (Ip4ConfigInstance, NULL, TRUE);
|
Status = EfiNicIp4ConfigSetInfo (Ip4ConfigInstance, NULL, FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue