summaryrefslogtreecommitdiff
path: root/sys/net/if_tun.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-03-21 23:31:28 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-03-21 23:31:28 +0000
commit01e49275e22f2613d4f14b83996403c02d3b2b7b (patch)
tree94649eb2bd557a632b33fdbefd1b8b07ae4f2f28 /sys/net/if_tun.c
parent51e702ed655a3cf3dc83d34c06005da09e639698 (diff)
add SIOCGIFMTU/SIOCSIFMTU; remediate redundant code of tun, ppp, sppp; chris@ ok
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r--sys/net/if_tun.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c
index 05d51acf141..8e0984d2974 100644
--- a/sys/net/if_tun.c
+++ b/sys/net/if_tun.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tun.c,v 1.28 1999/12/08 06:50:18 itojun Exp $ */
+/* $OpenBSD: if_tun.c,v 1.29 2000/03/21 23:31:27 mickey Exp $ */
/* $NetBSD: if_tun.c,v 1.24 1996/05/07 02:40:48 thorpej Exp $ */
/*
@@ -306,18 +306,9 @@ tun_ioctl(ifp, cmd, data)
tuninit((struct tun_softc *)(ifp->if_softc));
TUNDEBUG(("%s: broadcast address set\n", ifp->if_xname));
break;
-#if 0
case SIOCSIFMTU:
- if ((error = suser(p->p_ucred, &p->p_acflag)) != 0)
- break;
- ((struct tun_softc *)(ifp->if_softc))->tun_if.if_mtu
- = ((struct ifreq *)data)->ifr_mtu;
- break;
- case SIOCGIFMTU:
- ((struct ifreq *)data)->ifr_mtu =
- ((struct tun_softc *)(ifp->if_softc))->tun_if.if_mtu;
+ ifp->if_mtu = ((struct ifreq *)data)->ifr_mtu;
break;
-#endif
case SIOCSIFFLAGS:
break;
default: