diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-02-20 13:50:54 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-02-20 13:50:54 +0000 |
commit | a8326e8aeba4858c41b98da2c7b0d396fa6425a5 (patch) | |
tree | d755fc8ec5de9dd5b998c0bab82cc3bf836d1a25 /sys/net/if.c | |
parent | 99a41cb8e37286be1a89a23ca387886aef5ecbe7 (diff) |
provide SIOC[SG]LIFPHYADDR, which greatly simplify userland manipulation.
sync with kame. old ioctls are kept but not really recommended.
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index d04d080a270..578e8dcf327 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.42 2001/02/13 19:49:32 art Exp $ */ +/* $OpenBSD: if.c,v 1.43 2001/02/20 13:50:53 itojun Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -797,9 +797,11 @@ ifioctl(so, cmd, data, p) } case SIOCSIFPHYADDR: + case SIOCDIFPHYADDR: #ifdef INET6 case SIOCSIFPHYADDR_IN6: #endif + case SIOCSLIFPHYADDR: case SIOCADDMULTI: case SIOCDELMULTI: case SIOCSIFMEDIA: @@ -808,6 +810,7 @@ ifioctl(so, cmd, data, p) /* FALLTHROUGH */ case SIOCGIFPSRCADDR: case SIOCGIFPDSTADDR: + case SIOCGLIFPHYADDR: case SIOCGIFMEDIA: if (ifp->if_ioctl == 0) return (EOPNOTSUPP); @@ -1009,4 +1012,4 @@ void if_detached_watchdog(struct ifnet *ifp) { /* nothing */ -}
\ No newline at end of file +} |