summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Chang <mchang@suse.com>2016-10-27 17:42:19 -0400
committerColin Watson <cjwatson@debian.org>2021-09-27 20:09:39 +0100
commitcd78a54e5fa8d4a6f9223b7ddbb7db86ca0dd993 (patch)
tree32bc79d50d63e6f5a83b525ffad0fe542a709183 /include
parenta124f295433d6d3f371730b93d6468e6d5ad58e1 (diff)
bootp: Add processing DHCPACK packet from HTTP Boot
The vendor class identifier with the string "HTTPClient" is used to denote the packet as responding to HTTP boot request. In DHCP4 config, the filename for HTTP boot is the URL of the boot file while for PXE boot it is the path to the boot file. As a consequence, the next-server becomes obseleted because the HTTP URL already contains the server address for the boot file. For DHCP6 config, there's no difference definition in existing config as dhcp6.bootfile-url can be used to specify URL for both HTTP and PXE boot file. This patch adds processing for "HTTPClient" vendor class identifier in DHCPACK packet by treating it as HTTP format, not as the PXE format. Signed-off-by: Michael Chang <mchang@suse.com> Signed-off-by: Ken Lin <ken.lin@hpe.com> Last-Update: 2021-09-24 Patch-Name: bootp-process-dhcpack-http-boot.patch
Diffstat (limited to 'include')
-rw-r--r--include/grub/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/grub/net.h b/include/grub/net.h
index 1cb05627e..cbcae79b1 100644
--- a/include/grub/net.h
+++ b/include/grub/net.h
@@ -528,6 +528,7 @@ enum
GRUB_NET_DHCP_MESSAGE_TYPE = 53,
GRUB_NET_DHCP_SERVER_IDENTIFIER = 54,
GRUB_NET_DHCP_PARAMETER_REQUEST_LIST = 55,
+ GRUB_NET_BOOTP_VENDOR_CLASS_IDENTIFIER = 60,
GRUB_NET_BOOTP_CLIENT_ID = 61,
GRUB_NET_DHCP_TFTP_SERVER_NAME = 66,
GRUB_NET_DHCP_BOOTFILE_NAME = 67,