diff options
| author | Michael Brown | 2008-03-25 21:46:16 +0100 |
|---|---|---|
| committer | Michael Brown | 2008-03-25 21:46:16 +0100 |
| commit | 92d15eff30410dcb0ec406e06b131fb7d9179ffd (patch) | |
| tree | 191d29013372b541d353bbfa55114b8060dd557c /src/usr/autoboot.c | |
| parent | [PXEXT] Avoid returning a false EOF when we have an empty buffer queued (diff) | |
| download | ipxe-92d15eff30410dcb0ec406e06b131fb7d9179ffd.tar.gz ipxe-92d15eff30410dcb0ec406e06b131fb7d9179ffd.tar.xz ipxe-92d15eff30410dcb0ec406e06b131fb7d9179ffd.zip | |
[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.
Diffstat (limited to 'src/usr/autoboot.c')
| -rw-r--r-- | src/usr/autoboot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index bc86d05e8..c1a61ec04 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -147,14 +147,14 @@ static int netboot ( struct net_device *netdev ) { return rc; /* Try to download and boot whatever we are given as a filename */ - fetch_string_setting ( NULL, DHCP_BOOTFILE_NAME, buf, sizeof ( buf ) ); + fetch_string_setting ( NULL, &filename_setting, buf, sizeof ( buf ) ); if ( buf[0] ) { printf ( "Booting from filename \"%s\"\n", buf ); return boot_filename ( buf ); } /* No filename; try the root path */ - fetch_string_setting ( NULL, DHCP_ROOT_PATH, buf, sizeof ( buf ) ); + fetch_string_setting ( NULL, &root_path_setting, buf, sizeof ( buf ) ); if ( buf[0] ) { printf ( "Booting from root path \"%s\"\n", buf ); return boot_root_path ( buf ); |
