diff options
author | Andrei Borzenkov <arvidjaar@gmail.com> | 2019-03-07 15:14:13 +0000 |
---|---|---|
committer | Daniel Kiper <daniel.kiper@oracle.com> | 2019-03-12 20:04:07 +0100 |
commit | 93289dc67c7e213b21df0eb09afea5e3b00ad7df (patch) | |
tree | 07000f031d8bf81356d4f5712b9ae1dcb455e5f8 /include | |
parent | 12e1b6e604968feebf3dd7040ea905dc1ab41911 (diff) |
net/dhcp: Use DHCP options for name and bootfile
The BOOTP RFC describes the boot file name and the server name as being part
of the integral BOOTP data structure, with some limits on the size of them.
DHCP extends this by allowing them to be separate DHCP options, which is more
flexible.
Teach the code dealing with those fields to check for those DHCP options first
and use this information, if provided. We fall back to using the BOOTP
information if those options are not used.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/grub/net.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/grub/net.h b/include/grub/net.h index a1138f5d4..f7b546446 100644 --- a/include/grub/net.h +++ b/include/grub/net.h @@ -460,6 +460,8 @@ enum GRUB_NET_BOOTP_ROOT_PATH = 0x11, GRUB_NET_BOOTP_EXTENSIONS_PATH = 0x12, GRUB_NET_DHCP_OVERLOAD = 52, + GRUB_NET_DHCP_TFTP_SERVER_NAME = 66, + GRUB_NET_DHCP_BOOTFILE_NAME = 67, GRUB_NET_BOOTP_END = 0xff }; |