aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/efi
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2021-02-17 18:11:43 +0000
committerMichael Brown <mcb30@ipxe.org>2021-02-17 18:11:43 +0000
commitcd3de55ea54d709bb89d97977257dbbd723424e9 (patch)
tree52dd3aaff7a225e6aff8cd5cf361fc6f53e5c64a /src/include/ipxe/efi
parentd562339fcaf1bf5fb2e27f7c465e8633804c30b5 (diff)
downloadipxe-cd3de55ea54d709bb89d97977257dbbd723424e9.zip
ipxe-cd3de55ea54d709bb89d97977257dbbd723424e9.tar.gz
ipxe-cd3de55ea54d709bb89d97977257dbbd723424e9.tar.bz2
[efi] Record cached DHCPACK from loaded image's device handle, if presentcachedhcp
Record the cached DHCPACK obtained from the EFI_PXE_BASE_CODE_PROTOCOL instance installed on the loaded image's device handle, if present. This allows a chainloaded UEFI iPXE to reuse the IPv4 address and DHCP options previously obtained by the built-in PXE stack, as is already done for a chainloaded BIOS iPXE. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/efi')
-rw-r--r--src/include/ipxe/efi/efi_cachedhcp.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/ipxe/efi/efi_cachedhcp.h b/src/include/ipxe/efi/efi_cachedhcp.h
new file mode 100644
index 0000000..cd60d40
--- /dev/null
+++ b/src/include/ipxe/efi/efi_cachedhcp.h
@@ -0,0 +1,16 @@
+#ifndef _IPXE_EFI_CACHEDHCP_H
+#define _IPXE_EFI_CACHEDHCP_H
+
+/** @file
+ *
+ * EFI cached DHCP packet
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+
+#include <ipxe/efi/efi.h>
+
+extern int efi_cachedhcp_record ( EFI_HANDLE device );
+
+#endif /* _IPXE_EFI_CACHEDHCP_H */