diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-07-09 20:57:19 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-07-09 20:57:19 +0000 |
commit | dd7b80b0fb24a7f8c678f47dfdfca2955a360368 (patch) | |
tree | 4f5d69acbd19d8c9819962dec334b3ef5c5c0906 /sys/dev | |
parent | 55f7ac0f04824f7dea8a88f10367cbeda2b35e3e (diff) |
fix SIOCSIFMTU
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_nge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_nge.c b/sys/dev/pci/if_nge.c index 225f15bc9c2..3921e71f6fa 100644 --- a/sys/dev/pci/if_nge.c +++ b/sys/dev/pci/if_nge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_nge.c,v 1.36 2005/07/09 20:53:08 brad Exp $ */ +/* $OpenBSD: if_nge.c,v 1.37 2005/07/09 20:57:18 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2000, 2001 @@ -2078,7 +2078,7 @@ nge_ioctl(ifp, command, data) switch(command) { case SIOCSIFMTU: - if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu < ETHERMTU_JUMBO) + if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ETHERMTU_JUMBO) error = EINVAL; else ifp->if_mtu = ifr->ifr_mtu; |