summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/cachedhcp.h
diff options
context:
space:
mode:
authorMichael Brown2021-02-17 16:59:52 +0100
committerMichael Brown2021-02-17 16:59:52 +0100
commit057674bb1f766db8b4c6593dc238ea68e4f38028 (patch)
tree5bfd66f170528a5856b0314c0c4cef9a02116a93 /src/include/ipxe/cachedhcp.h
parent[ath5k] Add missing AR5K_EEPROM_READ in ath5k_eeprom_read_turbo_modes (diff)
downloadipxe-057674bb1f766db8b4c6593dc238ea68e4f38028.tar.gz
ipxe-057674bb1f766db8b4c6593dc238ea68e4f38028.tar.xz
ipxe-057674bb1f766db8b4c6593dc238ea68e4f38028.zip
[pxe] Split out platform-independent portions of cachedhcp.c
Split out the portions of cachedhcp.c that can be shared between BIOS and UEFI (both of which can provide a buffer containing a previously obtained DHCP packet, and neither of which provide a means to determine the length of this DHCP packet). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/cachedhcp.h')
-rw-r--r--src/include/ipxe/cachedhcp.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/ipxe/cachedhcp.h b/src/include/ipxe/cachedhcp.h
new file mode 100644
index 00000000..7765c645
--- /dev/null
+++ b/src/include/ipxe/cachedhcp.h
@@ -0,0 +1,17 @@
+#ifndef _IPXE_CACHEDHCP_H
+#define _IPXE_CACHEDHCP_H
+
+/** @file
+ *
+ * Cached DHCP packet
+ *
+ */
+
+FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
+
+#include <stddef.h>
+#include <ipxe/uaccess.h>
+
+extern int cachedhcp_record ( userptr_t data, size_t max_len );
+
+#endif /* _IPXE_CACHEDHCP_H */