summaryrefslogtreecommitdiffstats
path: root/src/net/udp
diff options
context:
space:
mode:
authorMichael Brown2013-03-20 16:06:40 +0100
committerMichael Brown2013-03-20 16:06:40 +0100
commitd938e50136b0bd7dbc56b250cd4363646e59c9fc (patch)
tree2b5cdf555219f0a238820dc55445f384441e72f3 /src/net/udp
parent[dhcp] Use PXE byte ordering for UUID in DHCP option 97 (diff)
downloadipxe-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/udp')
-rw-r--r--src/net/udp/dhcp.c4
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 ) {