]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add the kernel side of network interface renaming support.
authorBrooks Davis <brooks@FreeBSD.org>
Wed, 4 Feb 2004 02:54:25 +0000 (02:54 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Wed, 4 Feb 2004 02:54:25 +0000 (02:54 +0000)
commit36c19a572a7209bdd31dc30151badb6a4973161c
treeee6c51c3f7bd6bcd7b451bee4727dbb4e812fd97
parent2d85631ba7369a86e1a715def7be8e11cd66b428
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>
share/man/man9/ifnet.9
sys/net/if.c
sys/sys/sockio.h