summaryrefslogtreecommitdiff
path: root/src/network/networkd-setlink.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-12-07 08:23:27 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-12-07 15:01:04 +0900
commit45aa0e841ba084ef259d5970e340702130cd548c (patch)
tree0b81401ec7192d80c89604e1f77cecb4e1456d5d /src/network/networkd-setlink.c
parentf836390fa75f055b30867a81883075c4d791e7fd (diff)
downloadsystemd-45aa0e841ba084ef259d5970e340702130cd548c.tar.gz
network,udev: do not adjust local assignment bit of specified MAC address
People often assigns the MAC address of the enslaved interface to e.g. bridge interface. So, the local assignment bit should not be adjusted. Fixes #21649.
Diffstat (limited to 'src/network/networkd-setlink.c')
-rw-r--r--src/network/networkd-setlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-setlink.c b/src/network/networkd-setlink.c
index 177c054f46..ff4eecf9b3 100644
--- a/src/network/networkd-setlink.c
+++ b/src/network/networkd-setlink.c
@@ -807,7 +807,7 @@ int link_request_to_set_mac(Link *link, bool allow_retry) {
return 0;
link->requested_hw_addr = link->network->hw_addr;
- r = net_verify_hardware_address(link->ifname, /* warn_invalid = */ true,
+ r = net_verify_hardware_address(link->ifname, /* is_static = */ true,
link->iftype, &link->hw_addr, &link->requested_hw_addr);
if (r < 0)
return r;