diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2012-11-23 20:12:04 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2012-11-23 20:12:04 +0000 |
commit | 673d5d2ec6990bc4e901b79ee906e6d0f48e65b9 (patch) | |
tree | 5fb69070cb9b4839ceee9516f7821a8180ac4759 /sys/net/if.c | |
parent | 937ba45cfaba46497bf3a2e8f8bbe0c23f07c8ba (diff) |
Add SIOCGIFHARDMTU to allow retrieving the driver's maximum supported MTU
looks fine reyk@ ok mikeb@
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index b6ccd30202f..b0a3cb87c13 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.247 2012/10/23 17:41:00 claudio Exp $ */ +/* $OpenBSD: if.c,v 1.248 2012/11/23 20:12:03 sthen Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1268,6 +1268,10 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) ifr->ifr_mtu = ifp->if_mtu; break; + case SIOCGIFHARDMTU: + ifr->ifr_hardmtu = ifp->if_hardmtu; + break; + case SIOCGIFDATA: error = copyout((caddr_t)&ifp->if_data, ifr->ifr_data, sizeof(ifp->if_data)); |