mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 04:28:12 +03:00
[uuid] Abstract UUID mangling code out to a separate uuid_mangle() function
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1049,9 +1049,7 @@ int dhcp_create_request ( struct dhcp_packet *dhcppkt,
|
||||
client_uuid.type = DHCP_CLIENT_UUID_TYPE;
|
||||
if ( ( len = fetch_uuid_setting ( NULL, &uuid_setting,
|
||||
&client_uuid.uuid ) ) >= 0 ) {
|
||||
__bswap_32s ( &client_uuid.uuid.canonical.a );
|
||||
__bswap_16s ( &client_uuid.uuid.canonical.b );
|
||||
__bswap_16s ( &client_uuid.uuid.canonical.c );
|
||||
uuid_mangle ( &client_uuid.uuid );
|
||||
if ( ( rc = dhcppkt_store ( dhcppkt, DHCP_CLIENT_UUID,
|
||||
&client_uuid,
|
||||
sizeof ( client_uuid ) ) ) != 0 ) {
|
||||
|
||||
Reference in New Issue
Block a user