]> git.proxmox.com Git - grub2.git/commit
bootp: Add processing DHCPACK packet from HTTP Boot
authorMichael Chang <mchang@suse.com>
Thu, 27 Oct 2016 21:42:19 +0000 (17:42 -0400)
committerColin Watson <cjwatson@debian.org>
Mon, 24 Jun 2019 06:59:34 +0000 (07:59 +0100)
commit8be3181dfb0faf100b0b1c9cd2de7e65cc9fcaa9
treecd6d4589a526c0adfb4350c2d19d09c388866296
parent2526de135015946246936b78d2f6ccd16c50bdb7
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>
Patch-Name: bootp-process-dhcpack-http-boot.patch
grub-core/net/bootp.c
include/grub/net.h