diff options
author | Chris Cappuccio <chris@cvs.openbsd.org> | 2000-04-27 00:00:26 +0000 |
---|---|---|
committer | Chris Cappuccio <chris@cvs.openbsd.org> | 2000-04-27 00:00:26 +0000 |
commit | 6efc612ede960677ccc538d52e5ebb06117e09ea (patch) | |
tree | 44a226832a2c4c3832acc4e350c40c42f994338f /sys/net | |
parent | 2ff690a15797dceababa2e77f7dca9567657c9b9 (diff) |
Fix SIOCSIFMTU
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_vlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 2f41736c946..6cd892e2739 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.2 2000/04/26 22:57:27 chris Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.3 2000/04/27 00:00:24 chris Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology * @@ -503,7 +503,7 @@ vlan_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) * jumbo frames. It would be nice to replace ETHERMTU * with the parent interface's MTU in the following statement. */ - if (ifr->ifr_mtu > ETHERMTU) { + if (ifr->ifr_mtu > ETHERMTU || ifr->ifr_mtu < ETHERMIN) { error = EINVAL; } else { ifp->if_mtu = ifr->ifr_mtu; |