]> 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>
Tue, 1 Nov 2016 10:49:01 +0000 (10:49 +0000)
commitbf3776a3806e487b29f91d250ba7c4ba2fe9560b
treefae31d0f46580ac152d5ade61465bd5f98577f82
parent335be97c8fbaba3b5a52da43ecacc742c34d3cd0
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