conf: We're interested in the MAC address, not in the MAC itself

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Stefano Brivio 2024-04-11 18:52:33 +02:00
parent ee338a256e
commit eca8baa028

4
conf.c
View file

@ -625,7 +625,7 @@ static unsigned int conf_ip4(unsigned int ifi,
int rc = nl_link_get_mac(nl_sock, ifi, mac); int rc = nl_link_get_mac(nl_sock, ifi, mac);
if (rc < 0) { if (rc < 0) {
char ifname[IFNAMSIZ]; char ifname[IFNAMSIZ];
err("Couldn't discover MAC for %s: %s", err("Couldn't discover MAC address for %s: %s",
if_indextoname(ifi, ifname), strerror(-rc)); if_indextoname(ifi, ifname), strerror(-rc));
return 0; return 0;
} }
@ -684,7 +684,7 @@ static unsigned int conf_ip6(unsigned int ifi,
rc = nl_link_get_mac(nl_sock, ifi, mac); rc = nl_link_get_mac(nl_sock, ifi, mac);
if (rc < 0) { if (rc < 0) {
char ifname[IFNAMSIZ]; char ifname[IFNAMSIZ];
err("Couldn't discover MAC for %s: %s", err("Couldn't discover MAC address for %s: %s",
if_indextoname(ifi, ifname), strerror(-rc)); if_indextoname(ifi, ifname), strerror(-rc));
return 0; return 0;
} }