[Settings] Remove assumption that all settings have DHCP tag values
authorMichael Brown <mcb30@etherboot.org>
Tue, 25 Mar 2008 20:46:16 +0000 (20:46 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 25 Mar 2008 20:46:16 +0000 (20:46 +0000)
commit92d15eff30410dcb0ec406e06b131fb7d9179ffd
tree191d29013372b541d353bbfa55114b8060dd557c
parentee5bdb0d758a953a4f044795a3571ecb5cf3c735
[Settings] Remove assumption that all settings have DHCP tag values

Allow for settings to be described by something other than a DHCP option
tag if desirable.  Currently used only for the MAC address setting.

Separate out fake DHCP packet creation code from dhcp.c to fakedhcp.c.

Remove notion of settings from dhcppkt.c.

Rationalise dhcp.c to use settings API only for final registration of the
DHCP options, rather than using {store,fetch}_setting throughout.
24 files changed:
src/arch/i386/image/nbi.c
src/core/ibft.c
src/core/nvo.c
src/core/settings.c
src/hci/commands/nvo_cmd.c
src/hci/tui/settings_ui.c
src/include/gpxe/dhcp.h
src/include/gpxe/dhcpopts.h
src/include/gpxe/dhcppkt.h
src/include/gpxe/fakedhcp.h [new file with mode: 0644]
src/include/gpxe/settings.h
src/interface/pxe/pxe_preboot.c
src/net/dhcpopts.c
src/net/dhcppkt.c
src/net/fakedhcp.c [new file with mode: 0644]
src/net/ipv4.c
src/net/netdev_settings.c
src/net/tcp/iscsi.c
src/net/udp/dhcp.c
src/net/udp/dns.c
src/net/udp/tftp.c
src/usr/aoeboot.c
src/usr/autoboot.c
src/usr/iscsiboot.c