diff options
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/networkd-link.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 7f815382a4..927dbb1960 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -1490,10 +1490,10 @@ int link_update(Link *link, sd_rtnl_message *m) { PRIu16, link->original_mtu); } + /* The kernel may broadcast NEWLINK messages without the MAC address + set, simply ignore them. */ r = sd_rtnl_message_read_ether_addr(m, IFLA_ADDRESS, &mac); - if (r < 0) - log_debug_link(link, "Could not get MAC address: %s", strerror(-r)); - else { + if (r >= 0) { if (memcmp(link->mac.ether_addr_octet, mac.ether_addr_octet, ETH_ALEN)) { memcpy(link->mac.ether_addr_octet, mac.ether_addr_octet, ETH_ALEN); |