]> git.ipfire.org Git - thirdparty/grub.git/commit
net/dhcp: Set net_<interface>_client{id, uuid} variables from DHCP options
authorPaulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Wed, 22 Jan 2020 11:01:54 +0000 (12:01 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 18 Feb 2020 14:12:06 +0000 (15:12 +0100)
commitfebc761e678079345122f85b9a686d0e32a3b37f
treeeaf2d0ef380d2126dfa7fb8cae7228adcf5596fb
parente92111985773a79563ea2adf5022859611cf9dba
net/dhcp: Set net_<interface>_client{id, uuid} variables from DHCP options

This patch sets a net_<interface>_clientid and net_<interface>_clientuuid
GRUB environment variables, using the DHCP client ID and UUID options if
these are found.

In the same way than net_<interface>_<option> variables are set for other
options such domain name, boot file, next server, etc.

Signed-off-by: Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/net/bootp.c
include/grub/net.h