projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3e1eb2
)
tools/libxl: Document where the magic MAC numbers come from
author
Andrew Cooper
<andrew.cooper3@citrix.com>
Wed, 10 Feb 2021 13:51:21 +0000
(13:51 +0000)
committer
Andrew Cooper
<andrew.cooper3@citrix.com>
Thu, 11 Feb 2021 17:26:13 +0000
(17:26 +0000)
Matches the comment in the xl-network-configuration manpage.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
tools/libs/light/libxl_nic.c
patch
|
blob
|
history
diff --git
a/tools/libs/light/libxl_nic.c
b/tools/libs/light/libxl_nic.c
index 144e9e23e19837ae762b945d10586abdcb3c845d..0b45469dca1c14df9f4305394e53438127610e05 100644
(file)
--- a/
tools/libs/light/libxl_nic.c
+++ b/
tools/libs/light/libxl_nic.c
@@
-73,6
+73,7
@@
static int libxl__device_nic_setdefault(libxl__gc *gc, uint32_t domid,
libxl_uuid_generate(&uuid);
r = libxl_uuid_bytearray(&uuid);
+ /* Generate a random MAC address, with Xen's OUI (00:16:3e) */
nic->mac[0] = 0x00;
nic->mac[1] = 0x16;
nic->mac[2] = 0x3e;