From 673d5d2ec6990bc4e901b79ee906e6d0f48e65b9 Mon Sep 17 00:00:00 2001 From: Stuart Henderson Date: Fri, 23 Nov 2012 20:12:04 +0000 Subject: Add SIOCGIFHARDMTU to allow retrieving the driver's maximum supported MTU looks fine reyk@ ok mikeb@ --- sys/net/if_spppsubr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/net/if_spppsubr.c') 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; -- cgit v1.2.3