diff options
author | 2012-11-23 20:12:03 +0000 | |
---|---|---|
committer | 2012-11-23 20:12:03 +0000 | |
commit | a24e45cb43217ab4cd98e0047c1d41f4a63b6f4a (patch) | |
tree | e44cabeffb709633f34936ce058bb44545816c44 /sys/net/if_spppsubr.c | |
parent | better way to set baudrate to 0; pointed out by gsoares@ (diff) | |
download | wireguard-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.c | 7 |
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; |