]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[settings] Formalise notion of setting applicability
authorMichael Brown <mcb30@ipxe.org>
Tue, 22 Mar 2011 16:56:35 +0000 (16:56 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 22 Mar 2011 19:54:58 +0000 (19:54 +0000)
commitf5fd4dec3bab362a2ff7844859914e1f191fb905
tree607eacef2f79c016a0c3c3031de2bb7d8aa7e331
parent9215b7f4c0e24cceeac42d8ced5b4af824c4b011
[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>
12 files changed:
src/core/nvo.c
src/core/settings.c
src/drivers/net/phantom/phantom.c
src/include/ipxe/dhcpopts.h
src/include/ipxe/net80211.h
src/include/ipxe/netdevice.h
src/include/ipxe/settings.h
src/interface/smbios/smbios_settings.c
src/net/80211/net80211.c
src/net/dhcpopts.c
src/net/dhcppkt.c
src/net/netdev_settings.c