diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2004-02-04 02:54:25 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2004-02-04 02:54:25 +0000 |
commit | 36c19a572a7209bdd31dc30151badb6a4973161c (patch) | |
tree | ee6c51c3f7bd6bcd7b451bee4727dbb4e812fd97 /sys/sys/sockio.h | |
parent | 2d85631ba7369a86e1a715def7be8e11cd66b428 (diff) | |
download | src-36c19a572a7209bdd31dc30151badb6a4973161c.tar.gz src-36c19a572a7209bdd31dc30151badb6a4973161c.zip |
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>
Notes
Notes:
svn path=/head/; revision=125411
Diffstat (limited to 'sys/sys/sockio.h')
-rw-r--r-- | sys/sys/sockio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/sockio.h b/sys/sys/sockio.h index 93ec3ed61429..b2e07f53dbab 100644 --- a/sys/sys/sockio.h +++ b/sys/sys/sockio.h @@ -82,6 +82,7 @@ #define SIOCGIFINDEX _IOWR('i', 32, struct ifreq) /* get IF index */ #define SIOCGIFMAC _IOWR('i', 38, struct ifreq) /* get IF MAC label */ #define SIOCSIFMAC _IOW('i', 39, struct ifreq) /* set IF MAC label */ +#define SIOCSIFNAME _IOW('i', 40, struct ifreq) /* set IF name */ #define SIOCADDMULTI _IOW('i', 49, struct ifreq) /* add m'cast addr */ #define SIOCDELMULTI _IOW('i', 50, struct ifreq) /* del m'cast addr */ |