]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[smbios] Mangle UUIDs for SMBIOS version 2.6 and newer
authorMichael Brown <mcb30@ipxe.org>
Wed, 20 Mar 2013 00:14:38 +0000 (00:14 +0000)
committerMichael Brown <mcb30@ipxe.org>
Wed, 20 Mar 2013 00:19:42 +0000 (00:19 +0000)
commit9e896d0eeaa07d47b2bed4c92072fd638ce3eb55
tree5e60ae170d2044942ae856b11da968fb30c741fc
parent4f742bcd95373425fde52b0d3b354bb020446542
[smbios] Mangle UUIDs for SMBIOS version 2.6 and newer

iPXE treats UUIDs as being in network byte order (big-endian).  The
SMBIOS specification version 2.6 states that UUIDs are stored with
little-endian values in the first three fields; earlier versions did
not specify an endianness.  This results in some inconsistency between
the BIOS, vendor PXE, iPXE, and operating system interpretations of
the SMBIOS UUID.

dmidecode assumes that the byte order is little-endian if and only if
the SMBIOS version is 2.6 or higher.  Choose to match this behaviour.

Reported-by: Matthew Helton <mwhelton@gmail.com>
Reported-by: Alexandru Bordei <alexandru.bordei@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/smbios/smbios_settings.c