summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d060b62)
The kernel may broadcast such messages, simply discard them.
PRIu16, link->original_mtu);
}
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);
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 (memcmp(link->mac.ether_addr_octet, mac.ether_addr_octet, ETH_ALEN)) {
memcpy(link->mac.ether_addr_octet, mac.ether_addr_octet, ETH_ALEN);
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);