[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH for-4.15] tools/libxl: Document where the magic MAC numbers come from


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Wed, 10 Feb 2021 13:53:35 +0000
  • Authentication-results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • Delivery-date: Wed, 10 Feb 2021 13:54:13 +0000
  • Ironport-sdr: WIxDXhesAKCygVA1AKvENqXn7Mr8GPspEYgnMo9r1Pll+y+sC3SR8XoGCxELy5yI2/HSKJV8CE nyhWNwg5gBHDvqxACdBRO3Vp64cTub/Wman/cxULaAgFCzskuh/gWflUNVWgvBAnp07fL/wmF+ pY+T/yTEvCZ9HXHNaZcmMltSwU3rYfnBVZUnUUXuhUZfkwNSzsnL0XqHJ/qvl8Z74FVCWptZA/ DYtGqKYlJKdLY0z8cyJiFRsjk3PYSCWLti0ZQzGcRAlOXln8kcB2fqS6PPB/Wxtprt+G9NMgdZ lfw=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Matches the comment in the xl-network-configuration manpage.

Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
CC: Ian Jackson <iwj@xxxxxxxxxxxxxx>
CC: Wei Liu <wl@xxxxxxx>
CC: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
 tools/libs/light/libxl_nic.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/libs/light/libxl_nic.c b/tools/libs/light/libxl_nic.c
index 144e9e23e1..0b45469dca 100644
--- 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;
-- 
2.11.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.