diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-10-16 13:40:59 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-10-16 13:40:59 +0000 |
commit | ced92a6f6788df0bd8f707a4a96ed18448bb3607 (patch) | |
tree | 80511f9330dae140b084e84a185b2d34dda05a28 /sys/net/if.c | |
parent | f834672c12d4e7ddd1d910aeae1a449d120fa8f0 (diff) |
Remove kernel support for the following ioctl(2)s, deprecated since 2001:
- SIOCSIFPHYADDR
- SIOCSIFPHYADDR_IN6
- SIOCGIFPSRCADDR
- SIOCGIFPSRCADDR_IN6
- SIOCGIFPDSTADDR
- SIOCGIFPDSTADDR_IN6
ok bluhm@
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 206fffdbb07..58935f4e59a 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.518 2017/10/16 13:24:26 mpi Exp $ */ +/* $OpenBSD: if.c,v 1.519 2017/10/16 13:40:58 mpi Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -2003,11 +2003,7 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) rtm_ifchg(ifp); break; - case SIOCSIFPHYADDR: case SIOCDIFPHYADDR: -#ifdef INET6 - case SIOCSIFPHYADDR_IN6: -#endif case SIOCSLIFPHYADDR: case SIOCSLIFPHYRTABLE: case SIOCSLIFPHYTTL: @@ -2021,8 +2017,6 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) if ((error = suser(p, 0)) != 0) break; /* FALLTHROUGH */ - case SIOCGIFPSRCADDR: - case SIOCGIFPDSTADDR: case SIOCGLIFPHYADDR: case SIOCGLIFPHYRTABLE: case SIOCGLIFPHYTTL: |