diff options
| author | Michael Brown | 2008-05-20 19:41:36 +0200 |
|---|---|---|
| committer | Michael Brown | 2008-05-20 19:41:36 +0200 |
| commit | 30cd3486898e1d9a3add0ca05663637f4d3bf9c8 (patch) | |
| tree | 0508ef0fb74072f417151286b5541a3e8356573b /src/include/gpxe/uuid.h | |
| parent | [libc] Fix isdigit(), islower() and isupper(). (diff) | |
| download | ipxe-30cd3486898e1d9a3add0ca05663637f4d3bf9c8.tar.gz ipxe-30cd3486898e1d9a3add0ca05663637f4d3bf9c8.tar.xz ipxe-30cd3486898e1d9a3add0ca05663637f4d3bf9c8.zip | |
[SMBIOS] Interpret UUIDs as being in network-endian order
Various specification documents disagree about the byte ordering of
UUIDs. However, SMBIOS seems to use the standard in which everything is
in network-endian order.
This doesn't affect anything sent on the wire; only what gets printed on
the screen when the "uuid" variable is displayed.
Diffstat (limited to 'src/include/gpxe/uuid.h')
| -rw-r--r-- | src/include/gpxe/uuid.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/gpxe/uuid.h b/src/include/gpxe/uuid.h index 4f89be507..18d1f1412 100644 --- a/src/include/gpxe/uuid.h +++ b/src/include/gpxe/uuid.h @@ -12,11 +12,11 @@ union uuid { /** Canonical form (00000000-0000-0000-0000-000000000000) */ struct { - /** 8 hex digits, little-endian */ + /** 8 hex digits, big-endian */ uint32_t a; - /** 2 hex digits, little-endian */ + /** 2 hex digits, big-endian */ uint16_t b; - /** 2 hex digits, little-endian */ + /** 2 hex digits, big-endian */ uint16_t c; /** 2 hex digits, big-endian */ uint16_t d; |
