summaryrefslogtreecommitdiffstats
path: root/sys/net/if_spppsubr.c
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2012-11-23 20:12:03 +0000
committersthen <sthen@openbsd.org>2012-11-23 20:12:03 +0000
commita24e45cb43217ab4cd98e0047c1d41f4a63b6f4a (patch)
treee44cabeffb709633f34936ce058bb44545816c44 /sys/net/if_spppsubr.c
parentbetter way to set baudrate to 0; pointed out by gsoares@ (diff)
downloadwireguard-openbsd-a24e45cb43217ab4cd98e0047c1d41f4a63b6f4a.tar.xz
wireguard-openbsd-a24e45cb43217ab4cd98e0047c1d41f4a63b6f4a.zip
Add SIOCGIFHARDMTU to allow retrieving the driver's maximum supported MTU
looks fine reyk@ ok mikeb@
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r--sys/net/if_spppsubr.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 8e505949ad5..91a365262c4 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_spppsubr.c,v 1.98 2012/07/24 15:16:20 deraadt Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.99 2012/11/23 20:12:03 sthen Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
* Keepalive protocol implemented in both Cisco and PPP modes.
@@ -1117,6 +1117,11 @@ sppp_ioctl(struct ifnet *ifp, u_long cmd, void *data)
ifr->ifr_mtu = ifp->if_mtu;
break;
#endif
+#ifdef SIOCGIFHARDMTU
+ case SIOCGIFHARDMTU:
+ ifr->ifr_hardmtu = ifp->if_hardmtu;
+ break;
+#endif
#ifdef SLIOCGETMTU
case SLIOCGETMTU:
*(short*)data = ifp->if_mtu;