summaryrefslogtreecommitdiff
path: root/sys/net/if_gre.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-20 09:35:10 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-20 09:35:10 +0000
commit34cfb4dc3e8c6c7c8bf396ae6446f109f04c7fe9 (patch)
tree39a01c899ff68e02ad6fa7aa0fba4ae0a01b138c /sys/net/if_gre.c
parentddcc005f9a59954e7a3886be80552d65117f9383 (diff)
Kill dead ioctl handlers.
SIOCGIF{HARD,}MTU are handled by ifioctl() and not passed down to drivers. ok visa@
Diffstat (limited to 'sys/net/if_gre.c')
-rw-r--r--sys/net/if_gre.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c
index b13acbb0eb0..51bb25d4065 100644
--- a/sys/net/if_gre.c
+++ b/sys/net/if_gre.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_gre.c,v 1.87 2017/08/11 21:24:19 mpi Exp $ */
+/* $OpenBSD: if_gre.c,v 1.88 2017/10/20 09:35:09 mpi Exp $ */
/* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */
/*
@@ -456,12 +456,6 @@ gre_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
}
ifp->if_mtu = ifr->ifr_mtu;
break;
- case SIOCGIFMTU:
- ifr->ifr_mtu = sc->sc_if.if_mtu;
- break;
- case SIOCGIFHARDMTU:
- ifr->ifr_hardmtu = sc->sc_if.if_hardmtu;
- break;
case SIOCADDMULTI:
case SIOCDELMULTI:
break;