Reviewed-by : Samer El-Haj-Mahmoud <[email protected]>
-----Original Message----- From: Jiaxin Wu [[email protected]] Received: Wednesday, 08 Jun 2016, 12:49AM To: [email protected] [[email protected]] CC: Ye Ting [[email protected]]; El-Haj-Mahmoud, Samer [[email protected]]; Subramanian, Sriram (EG Servers Platform SW) [[email protected]] Subject: [Patch] MdeModulePkg: Fix IPv4 UseDefaultAddress failure case. This patch is used to update IP4->Configure() to allow the upper layer modules to obtain a default address by setting UseDefaultAddress to TRUE when default address is not available yet. Cc: Ye Ting <[email protected]> Cc: El-Haj-Mahmoud Samer <[email protected]> Cc: Subramanian Sriram <[email protected]> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiaxin Wu <[email protected]> --- MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c index e733816..91f1a67 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Impl.c @@ -674,12 +674,15 @@ Ip4ConfigProtocol ( } else { // // Use the default address. Check the state. // if (IpSb->State == IP4_SERVICE_UNSTARTED) { - Status = EFI_NO_MAPPING; - goto ON_ERROR; + Status = Ip4StartAutoConfig (&IpSb->Ip4Config2Instance); + + if (EFI_ERROR (Status)) { + goto ON_ERROR; + } } IpIf = IpSb->DefaultInterface; NET_GET_REF (IpSb->DefaultInterface); -- 1.9.5.msysgit.1 _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

