ether-addr-util: make hw_addr_is_null() return true also for all zero address
This fixes the following error: --- systemd-networkd[1449490]: ip6tnl0: Saved hardware address: 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00 systemd-networkd[1449490]: ip6tnl0: Failed to manage link by its new hardware address, ignoring: File exists ---
This commit is contained in:
@@ -553,7 +553,7 @@ static int decode_link(sd_netlink_message *m, LinkInfo *info, char **patterns, b
|
||||
|
||||
info->has_mac_address =
|
||||
netlink_message_read_hw_addr(m, IFLA_ADDRESS, &info->hw_address) >= 0 &&
|
||||
!hw_addr_is_null(&info->hw_address);
|
||||
info->hw_address.length > 0;
|
||||
|
||||
info->has_permanent_mac_address =
|
||||
ethtool_get_permanent_macaddr(NULL, info->name, &info->permanent_mac_address) >= 0 &&
|
||||
|
||||
Reference in New Issue
Block a user