diff options
author | Michael Brown <mcb30@ipxe.org> | 2017-03-20 13:58:59 +0200 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2017-03-20 13:58:59 +0200 |
commit | de2c6fa240fc3b42c91c06775de6a26eb4aa3faf (patch) | |
tree | 7cd6c420f74cebdeb73052dd7889620db840c0f2 /src/core/settings.c | |
parent | 7692a8ff02c078ef32dac4f05451f0ffa5872e64 (diff) | |
download | ipxe-de2c6fa240fc3b42c91c06775de6a26eb4aa3faf.tar.gz |
[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/settings.c')
-rw-r--r-- | src/core/settings.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/settings.c b/src/core/settings.c index e60a882a7..f5be5c4eb 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 |