mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 06:22:59 +03:00
[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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user