diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-02-17 15:59:52 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-02-17 15:59:52 +0000 |
commit | 057674bb1f766db8b4c6593dc238ea68e4f38028 (patch) | |
tree | 5bfd66f170528a5856b0314c0c4cef9a02116a93 /src/include/ipxe/cachedhcp.h | |
parent | 19d0fab40f07eeea7fe6b9e0d4e8d4b0c2de215f (diff) | |
download | ipxe-057674bb1f766db8b4c6593dc238ea68e4f38028.tar.gz |
[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.h | 17 |
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 000000000..7765c6455 --- /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 */ |