diff options
author | Michael Brown | 2008-03-28 16:35:06 +0100 |
---|---|---|
committer | Michael Brown | 2008-03-28 16:35:06 +0100 |
commit | feade5da6e0fd233b845d40c7a0a696ad1e35cc4 (patch) | |
tree | 9070941b33b0ef636f5602c67d2218779880dea9 /src/net | |
parent | [DHCP] Add support for ProxyDHCP requests (diff) | |
download | ipxe-feade5da6e0fd233b845d40c7a0a696ad1e35cc4.tar.gz ipxe-feade5da6e0fd233b845d40c7a0a696ad1e35cc4.tar.xz ipxe-feade5da6e0fd233b845d40c7a0a696ad1e35cc4.zip |
[Settings] Expose SMBIOS via settings API
In particular, expose the system UUID as a setting ("smbios/uuid").
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/udp/dhcp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index a7935918..ecb73785 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -214,7 +214,7 @@ static int dhcpset_store ( struct settings *settings, struct setting *setting, } /** - * Fetch value of setting + * Fetch value of DHCP setting * * @v settings Settings block, or NULL to search all blocks * @v setting Setting to fetch @@ -517,7 +517,8 @@ int dhcp_create_request ( struct dhcp_packet *dhcppkt, /* Add client UUID, if we have one. Required for PXE. */ client_uuid.type = DHCP_CLIENT_UUID_TYPE; - if ( ( rc = get_uuid ( &client_uuid.uuid ) ) == 0 ) { + if ( ( rc = fetch_uuid_setting ( NULL, &uuid_setting, + &client_uuid.uuid ) ) >= 0 ) { if ( ( rc = dhcppkt_store ( dhcppkt, DHCP_CLIENT_UUID, &client_uuid, sizeof ( client_uuid ) ) ) != 0 ) { |