From 7914afb0cdddf6085e2b46e696655b5135ed0cb5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Sun, 16 Mar 2025 02:23:00 -0400 Subject: [PATCH] global: Switch to new MAC prefix MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- src/lxc/network.c | 8 ++++---- src/tests/lxc-test-utils.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lxc/network.c b/src/lxc/network.c index 0a99d32a0..f7d66eed2 100644 --- a/src/lxc/network.c +++ b/src/lxc/network.c @@ -3480,10 +3480,10 @@ static int lxc_create_network_priv(struct lxc_handler *handler) * following devices: * 4: eth1: mtu 1500 qdisc noop state DOWN group default qlen 1000 - * link/ether 00:16:3e:91:d3:ae brd ff:ff:ff:ff:ff:ff permaddr 00:16:3e:e7:5d:10 + * link/ether 10:66:6a:91:d3:ae brd ff:ff:ff:ff:ff:ff permaddr 10:66:6a:e7:5d:10 * altname enp7s0 * 5: eth2: mtu 1500 qdisc noop state DOWN group default qlen 1000 - * link/ether 00:16:3e:e7:5d:10 brd ff:ff:ff:ff:ff:ff permaddr 00:16:3e:91:d3:ae + * link/ether 10:66:6a:e7:5d:10 brd ff:ff:ff:ff:ff:ff permaddr 10:66:6a:91:d3:ae * altname enp8s0 * * and the user generates the following network config for their container: @@ -3500,10 +3500,10 @@ static int lxc_create_network_priv(struct lxc_handler *handler) * network namespace into the container's network namespace: * * 24: eth1: mtu 1500 qdisc noop state DOWN group default qlen 1000 - * link/ether 00:16:3e:91:d3:ae brd ff:ff:ff:ff:ff:ff permaddr 00:16:3e:e7:5d:10 + * link/ether 10:66:6a:91:d3:ae brd ff:ff:ff:ff:ff:ff permaddr 10:66:6a:e7:5d:10 * altname enp7s0 * 25: eth2: mtu 1500 qdisc noop state DOWN group default qlen 1000 - * link/ether 00:16:3e:e7:5d:10 brd ff:ff:ff:ff:ff:ff permaddr 00:16:3e:91:d3:ae + * link/ether 10:66:6a:e7:5d:10 brd ff:ff:ff:ff:ff:ff permaddr 10:66:6a:91:d3:ae * altname enp8s0 * * According to the network config above we now need to rename the network diff --git a/src/tests/lxc-test-utils.c b/src/tests/lxc-test-utils.c index e3a79ebaf..aa5cda6b9 100644 --- a/src/tests/lxc-test-utils.c +++ b/src/tests/lxc-test-utils.c @@ -503,7 +503,7 @@ void test_parse_byte_size_string(void) void test_lxc_config_net_is_hwaddr(void) { - if (!lxc_config_net_is_hwaddr("lxc.net.0.hwaddr = 00:16:3e:04:65:b8\n")) + if (!lxc_config_net_is_hwaddr("lxc.net.0.hwaddr = 10:66:6a:04:65:b8\n")) exit(EXIT_FAILURE); if (lxc_config_net_is_hwaddr("lxc.net")) -- 2.47.2