Revision: 18800
http://sourceforge.net/p/edk2/code/18800
Author: vanjeff
Date: 2015-11-16 07:17:05 +0000 (Mon, 16 Nov 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.
(Sync patch r18616 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <[email protected]>
Reviewed-by: Ye Ting <[email protected]>
Reviewed-by: Sriram Subramanian <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/18616
Modified Paths:
--------------
branches/UDK2015/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
Modified: branches/UDK2015/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
===================================================================
--- branches/UDK2015/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c 2015-11-16
06:59:13 UTC (rev 18799)
+++ branches/UDK2015/NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c 2015-11-16
07:17:05 UTC (rev 18800)
@@ -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;
------------------------------------------------------------------------------
Presto, an open source distributed SQL query engine for big data, initially
developed by Facebook, enables you to easily query your data on Hadoop in a
more interactive manner. Teradata is also now providing full enterprise
support for Presto. Download a free open source copy now.
http://pubads.g.doubleclick.net/gampad/clk?id=250295911&iu=/4140
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits