diff options
| author | Michael Brown | 2013-03-20 16:06:40 +0100 |
|---|---|---|
| committer | Michael Brown | 2013-03-20 16:06:40 +0100 |
| commit | d938e50136b0bd7dbc56b250cd4363646e59c9fc (patch) | |
| tree | 2b5cdf555219f0a238820dc55445f384441e72f3 /src/net | |
| parent | [dhcp] Use PXE byte ordering for UUID in DHCP option 97 (diff) | |
| download | ipxe-d938e50136b0bd7dbc56b250cd4363646e59c9fc.tar.gz ipxe-d938e50136b0bd7dbc56b250cd4363646e59c9fc.tar.xz ipxe-d938e50136b0bd7dbc56b250cd4363646e59c9fc.zip | |
[uuid] Abstract UUID mangling code out to a separate uuid_mangle() function
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net')
| -rw-r--r-- | src/net/udp/dhcp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net/udp/dhcp.c b/src/net/udp/dhcp.c index 3f2c451e1..762ae732a 100644 --- a/src/net/udp/dhcp.c +++ b/src/net/udp/dhcp.c @@ -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 ) { |
