summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 7a84bf8..8f09e69 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1160,6 +1160,9 @@ ifhwioctl(u_long cmd, struct ifnet *ifp, caddr_t data, struct thread *td)
/* Announce the departure of the interface. */
rt_ifannouncemsg(ifp, IFAN_DEPARTURE);
+ log(LOG_INFO, "%s: changing name to '%s'\n",
+ ifp->if_xname, new_name);
+
strlcpy(ifp->if_xname, new_name, sizeof(ifp->if_xname));
ifa = ifaddr_byindex(ifp->if_index);
IFA_LOCK(ifa);
OpenPOWER on IntegriCloud