From feade5da6e0fd233b845d40c7a0a696ad1e35cc4 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 28 Mar 2008 15:35:06 +0000 Subject: [Settings] Expose SMBIOS via settings API In particular, expose the system UUID as a setting ("smbios/uuid"). --- src/net/udp/dhcp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/net') diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index a7935918b..ecb737850 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 ) { -- cgit v1.2.3-55-g7522