summaryrefslogtreecommitdiffstats
path: root/src/core/settings.c
diff options
context:
space:
mode:
authorMichael Brown2013-11-08 16:52:56 +0100
committerMichael Brown2013-11-14 13:35:43 +0100
commit4484edd1c0bd4f62c75f0db517e2747039816e4c (patch)
tree8dbc89534e1dbc198a3e17c2c4d5e7a98a8ddbe4 /src/core/settings.c
parent[base16] Fix comparison of signed and unsigned integers (diff)
downloadipxe-4484edd1c0bd4f62c75f0db517e2747039816e4c.tar.gz
ipxe-4484edd1c0bd4f62c75f0db517e2747039816e4c.tar.xz
ipxe-4484edd1c0bd4f62c75f0db517e2747039816e4c.zip
[settings] Move user-class setting from dhcp.c to settings.c
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core/settings.c')
-rw-r--r--src/core/settings.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/settings.c b/src/core/settings.c
index 0fe8b2eb..03ef084a 100644
--- a/src/core/settings.c
+++ b/src/core/settings.c
@@ -2240,6 +2240,14 @@ struct setting priority_setting __setting ( SETTING_MISC ) = {
.type = &setting_type_int8,
};
+/** DHCP user class setting */
+struct setting user_class_setting __setting ( SETTING_HOST_EXTRA ) = {
+ .name = "user-class",
+ .description = "DHCP user class",
+ .tag = DHCP_USER_CLASS_ID,
+ .type = &setting_type_string,
+};
+
/******************************************************************************
*
* Built-in settings block