Add UUID to DHCP request as option 97 (if available).
[people/mcb30/gpxe.git] / src / include / gpxe / uuid.h
1 #ifndef _GPXE_UUID_H
2 #define _GPXE_UUID_H
3
4 /** @file
5  *
6  * Universally unique IDs
7  */
8
9 #include <stdint.h>
10
11 union uuid;
12 #include <bits/uuid.h>
13
14 /** A universally unique ID */
15 union uuid {
16         /** Canonical form (00000000-0000-0000-0000-000000000000) */
17         struct {
18                 /** 8 hex digits, little-endian */
19                 uint32_t a;
20                 /** 2 hex digits, little-endian */
21                 uint16_t b;
22                 /** 2 hex digits, little-endian */
23                 uint16_t c;
24                 /** 2 hex digits, big-endian */
25                 uint16_t d;
26                 /** 12 hex digits, big-endian */
27                 uint8_t e[6];
28         } canonical;
29         uint8_t raw[16];
30 };
31
32 extern char * uuid_ntoa ( union uuid *uuid );
33
34 #endif /* _GPXE_UUID_H */