Revision: 18616 http://sourceforge.net/p/edk2/code/18616 Author: sfu5 Date: 2015-10-16 07:18:51 +0000 (Fri, 16 Oct 2015) Log Message: ----------- NetworkPkg: reset DHCP child when leaving PXE LoadFile.
The DHCP4 can have only one configured child instance so we need to reset the DHCP4 child when leaving PXE driver's LoadFile() function, otherwise the other programs which also need to use DHCP4 (like HTTP boot) will be impacted. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan...@intel.com> Reviewed-by: Ye Ting <ting...@intel.com> Reviewed-by: Sriram Subramanian <srira...@hpe.com> Modified Paths: -------------- trunk/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c Modified: trunk/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c =================================================================== --- trunk/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c 2015-10-16 07:18:38 UTC (rev 18615) +++ trunk/edk2/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c 2015-10-16 07:18:51 UTC (rev 18616) @@ -2392,6 +2392,16 @@ // 3. unsupported. // PxeBc->Stop (PxeBc); + } else { + // + // The DHCP4 can have only one configured child instance so we need to stop + // reset the DHCP4 child before we return. Otherwise these programs which + // also need to use DHCP4 will be impacted. + // + if (!PxeBc->Mode->UsingIpv6) { + Private->Dhcp4->Stop (Private->Dhcp4); + Private->Dhcp4->Configure (Private->Dhcp4, NULL); + } } return Status; ------------------------------------------------------------------------------ _______________________________________________ edk2-commits mailing list edk2-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-commits