summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorMichael Brown2017-03-20 12:58:59 +0100
committerMichael Brown2017-03-20 12:58:59 +0100
commitde2c6fa240fc3b42c91c06775de6a26eb4aa3faf (patch)
tree7cd6c420f74cebdeb73052dd7889620db840c0f2 /src/core
parent[undi] Move PXE API caller back into UNDI driver (diff)
downloadipxe-de2c6fa240fc3b42c91c06775de6a26eb4aa3faf.tar.gz
ipxe-de2c6fa240fc3b42c91c06775de6a26eb4aa3faf.tar.xz
ipxe-de2c6fa240fc3b42c91c06775de6a26eb4aa3faf.zip
[dhcp] Allow vendor class to be changed in DHCP requests
Allow the DHCPv4 vendor class to be specified via the "vendor-class" setting. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/settings.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/settings.c b/src/core/settings.c
index e60a882a..f5be5c4e 100644
--- a/src/core/settings.c
+++ b/src/core/settings.c
@@ -2429,6 +2429,15 @@ const struct setting user_class_setting __setting ( SETTING_HOST_EXTRA,
.type = &setting_type_string,
};
+/** DHCP vendor class setting */
+const struct setting vendor_class_setting __setting ( SETTING_HOST_EXTRA,
+ vendor-class ) = {
+ .name = "vendor-class",
+ .description = "DHCP vendor class",
+ .tag = DHCP_VENDOR_CLASS_ID,
+ .type = &setting_type_string,
+};
+
/******************************************************************************
*
* Built-in settings block