diff options
| author | Brooks Davis <brooks@FreeBSD.org> | 2004-09-18 05:02:08 +0000 |
|---|---|---|
| committer | Brooks Davis <brooks@FreeBSD.org> | 2004-09-18 05:02:08 +0000 |
| commit | 71672bb6f6c9919e14e007e410c89bd8ae56fc82 (patch) | |
| tree | a29a257b27f47272de479d5b06205a33e7562e6a /sys/net | |
| parent | ca9b2364c30567c764a2b4404f9fdaffdfad894a (diff) | |
Notes
Diffstat (limited to 'sys/net')
| -rw-r--r-- | sys/net/if.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 7a84bf8d0cc1..8f09e69b5c5a 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); |
