diff options
author | brooks <brooks@FreeBSD.org> | 2004-02-04 02:54:25 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2004-02-04 02:54:25 +0000 |
commit | 4f14e0fa867d5fae33d247bfe7a0aff6a2f9374e (patch) | |
tree | ee6c51c3f7bd6bcd7b451bee4727dbb4e812fd97 /share | |
parent | c78bcd05a81896c93001355e8619caa0f1fda74d (diff) | |
download | FreeBSD-src-4f14e0fa867d5fae33d247bfe7a0aff6a2f9374e.zip FreeBSD-src-4f14e0fa867d5fae33d247bfe7a0aff6a2f9374e.tar.gz |
Add the kernel side of network interface renaming support.
The basic process is to send a routing socket announcement that the
interface has departed, change if_xname, update the sockaddr_dl
associated with the interface, and announce the arrival of the interface
on the routing socket.
As part of this change, ifunit() is greatly simplified by testing
if_xname directly. if_clone_destroy() now uses if_dname to look up the
cloner for the interface and if_dunit to identify the unit number.
Reviewed by: ru, sam (concept)
Vincent Jardin <vjardin AT free.fr>
Max Laier <max AT love2party.net>
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/ifnet.9 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/man/man9/ifnet.9 b/share/man/man9/ifnet.9 index 1ab4ec0..be2a40b 100644 --- a/share/man/man9/ifnet.9 +++ b/share/man/man9/ifnet.9 @@ -961,6 +961,13 @@ The following commands are handled by Get interface configuration. (No call-down to driver.) .Pp +.It Dv SIOCSIFNAME +Set the interface name. +.Dv RTM_IFANNOUCNE departure and arrival messages are sent so that +routing code that relies on the interface name will update its interface +list. +Caller must have appropriate privilege. +(No call-down to driver.) .It Dv SIOCGIFCAP .It Dv SIOCGIFFLAGS .It Dv SIOCGIFMETRIC |