[pxe] Support cached DHCP packets in .kkpxe images

If we don't unload the PXE stack before executing gPXE, automatically
take advantage of the cached DHCPACK that the underlying/parent PXE
stack can provide. If that cached DHCPACK contains option 175.178, or
the user sets the use-cached setting before invoking DHCP, the real
DHCP request will be skipped and the cached DHCPACK will be used for
network configuration. Otherwise, the cached settings block is thrown
away as soon as a fresh one is acquired.

Signed-off-by: Marty Connor <mdc@etherboot.org>
This commit is contained in:
Joshua Oreman
2009-12-08 03:48:15 -05:00
committed by Marty Connor
parent b1ba80f8fb
commit 9e9cc8c60f
2 changed files with 72 additions and 0 deletions
+3
View File
@@ -5,6 +5,9 @@
FILE_LICENCE ( GPL2_OR_LATER )
/* Since we have the whole stack, we can use cached DHCP information */
REQUEST_OBJECT ( pxeparent_dhcp )
#define PXELOADER_KEEP_UNDI
#define PXELOADER_KEEP_PXE
#include "pxeprefix.S"