aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/dhcpopts.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2011-03-22 16:56:35 +0000
committerMichael Brown <mcb30@ipxe.org>2011-03-22 19:54:58 +0000
commitf5fd4dec3bab362a2ff7844859914e1f191fb905 (patch)
tree607eacef2f79c016a0c3c3031de2bb7d8aa7e331 /src/include/ipxe/dhcpopts.h
parent9215b7f4c0e24cceeac42d8ced5b4af824c4b011 (diff)
downloadipxe-f5fd4dec3bab362a2ff7844859914e1f191fb905.tar.gz
[settings] Formalise notion of setting applicability
Expose a function setting_applies() to allow a caller to determine whether or not a particular setting is applicable to a particular settings block. Restrict DHCP-backed settings blocks to accepting only DHCP-based settings. Restrict network device settings blocks to accepting only DHCP-based settings and network device-specific settings such as "mac". Inspired-by: Glenn Brown <glenn@myri.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/dhcpopts.h')
-rw-r--r--src/include/ipxe/dhcpopts.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/ipxe/dhcpopts.h b/src/include/ipxe/dhcpopts.h
index 8fb3d2d79..c5af5d749 100644
--- a/src/include/ipxe/dhcpopts.h
+++ b/src/include/ipxe/dhcpopts.h
@@ -28,6 +28,7 @@ struct dhcp_options {
int ( * realloc ) ( struct dhcp_options *options, size_t len );
};
+extern int dhcpopt_applies ( unsigned int tag );
extern int dhcpopt_store ( struct dhcp_options *options, unsigned int tag,
const void *data, size_t len );
extern int dhcpopt_fetch ( struct dhcp_options *options, unsigned int tag,