diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-01-20 00:51:57 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2017-01-20 00:51:57 +0000 |
commit | 50809cc93ee0611a6bc7fe6a10ed950c95a02f17 (patch) | |
tree | 8f97c32f34567ba085c2d2a6f22e11b5fac3a266 /sys/net | |
parent | 913d8aae97aa017bb85203c4ea90119f18ab4336 (diff) |
No need to handle SIOCAIFADDR in drivers, it's never passed down to
them.
ok claudio@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_enc.c | 3 | ||||
-rw-r--r-- | sys/net/if_pflow.c | 3 | ||||
-rw-r--r-- | sys/net/if_pfsync.c | 3 | ||||
-rw-r--r-- | sys/net/if_spppsubr.c | 3 |
4 files changed, 4 insertions, 8 deletions
diff --git a/sys/net/if_enc.c b/sys/net/if_enc.c index 12241c3cebb..15e9a8a597a 100644 --- a/sys/net/if_enc.c +++ b/sys/net/if_enc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_enc.c,v 1.65 2016/09/04 21:46:36 krw Exp $ */ +/* $OpenBSD: if_enc.c,v 1.66 2017/01/20 00:51:56 mpi Exp $ */ /* * Copyright (c) 2010 Reyk Floeter <reyk@vantronix.net> @@ -184,7 +184,6 @@ enc_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) int error; switch (cmd) { - case SIOCAIFADDR: case SIOCSIFADDR: case SIOCSIFDSTADDR: case SIOCSIFFLAGS: diff --git a/sys/net/if_pflow.c b/sys/net/if_pflow.c index 793eaee3d4c..50a2a2cd1da 100644 --- a/sys/net/if_pflow.c +++ b/sys/net/if_pflow.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pflow.c,v 1.68 2017/01/18 08:48:06 florian Exp $ */ +/* $OpenBSD: if_pflow.c,v 1.69 2017/01/20 00:51:56 mpi Exp $ */ /* * Copyright (c) 2011 Florian Obser <florian@narrans.de> @@ -455,7 +455,6 @@ pflowioctl(struct ifnet *ifp, u_long cmd, caddr_t data) switch (cmd) { case SIOCSIFADDR: - case SIOCAIFADDR: case SIOCSIFDSTADDR: case SIOCSIFFLAGS: if ((ifp->if_flags & IFF_UP) && sc->so != NULL) { diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c index 117d03f2b2a..331023da4a7 100644 --- a/sys/net/if_pfsync.c +++ b/sys/net/if_pfsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pfsync.c,v 1.239 2016/12/19 15:46:28 mpi Exp $ */ +/* $OpenBSD: if_pfsync.c,v 1.240 2017/01/20 00:51:56 mpi Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff @@ -1241,7 +1241,6 @@ pfsyncioctl(struct ifnet *ifp, u_long cmd, caddr_t data) switch (cmd) { #if 0 case SIOCSIFADDR: - case SIOCAIFADDR: case SIOCSIFDSTADDR: #endif case SIOCSIFFLAGS: diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c index 562f5530a89..b479779b260 100644 --- a/sys/net/if_spppsubr.c +++ b/sys/net/if_spppsubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_spppsubr.c,v 1.159 2017/01/08 02:16:08 bluhm Exp $ */ +/* $OpenBSD: if_spppsubr.c,v 1.160 2017/01/20 00:51:56 mpi Exp $ */ /* * Synchronous PPP link level subroutines. * @@ -824,7 +824,6 @@ sppp_ioctl(struct ifnet *ifp, u_long cmd, void *data) s = splnet(); rv = 0; switch (cmd) { - case SIOCAIFADDR: case SIOCSIFDSTADDR: break; |