@@ -620,7 +620,7 @@ static int network_handle_nlmsg(struct network *network, struct nlmsghdr *nlmsg)
list_for_each_entry(&network->interfaces, tmp, list)
if (hwaddr_cmp(interface->hwaddr, interface->hwaddr_len,
tmp->hwaddr, tmp->hwaddr_len) == 0) {
- pb_log("%s: %s has duplicate MAC address, ignoring\n",
+ pb_log("%s: %s has duplicate hwaddr, ignoring\n",
__func__, interface->name);
talloc_free(interface);
return -1;
@@ -693,7 +693,7 @@ void network_mark_interface_ready(struct device_handler *handler,
list_for_each_entry(&network->interfaces, tmp, list)
if (hwaddr_cmp(interface->hwaddr, interface->hwaddr_len,
tmp->hwaddr, tmp->hwaddr_len) == 0) {
- pb_log("%s: %s has duplicate MAC address, ignoring\n",
+ pb_log("%s: %s has duplicate hwaddr, ignoring\n",
__func__, interface->name);
talloc_free(interface);
return;
@@ -718,7 +718,7 @@ void network_mark_interface_ready(struct device_handler *handler,
if (hwaddr_cmp(interface->hwaddr, interface->hwaddr_len, mac, hwsize) != 0) {
macstr = mac_bytes_to_string(interface, mac, hwsize);
- pb_log("Warning - new MAC for interface %d does not match: %s\n",
+ pb_log("Warning - new hwaddr for interface %d does not match: %s\n",
ifindex, macstr);
talloc_free(macstr);
}
@@ -129,7 +129,7 @@ static void sysinfo_screen_populate(struct sysinfo_screen *screen,
if_info_mac_str(info, macbuf, sizeof(macbuf));
line("%s:", info->name);
- line(_(" MAC: %s"), macbuf);
+ line(_(" HW Address: %s"), macbuf);
line(_(" IP Address: %s"), info->address ?: _("none"));
/* TRANSLATORS: these "up" / "down" strings refer to the
* link status for a network connection. */
Change references in logs and menus from "MAC address" to "hwaddr" or "HW Address" to reduce confusion for non-MAC interfaces. Signed-off-by: Daniel M. Weeks <weeksd2@rpi.edu> --- discover/network.c | 6 +++--- ui/ncurses/nc-sysinfo.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)