summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2004-02-04 02:54:25 +0000
committerbrooks <brooks@FreeBSD.org>2004-02-04 02:54:25 +0000
commit4f14e0fa867d5fae33d247bfe7a0aff6a2f9374e (patch)
treeee6c51c3f7bd6bcd7b451bee4727dbb4e812fd97 /share
parentc78bcd05a81896c93001355e8619caa0f1fda74d (diff)
downloadFreeBSD-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.97
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
OpenPOWER on IntegriCloud