diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-07-12 02:06:32 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-07-12 02:06:32 +0000 |
commit | 966b7f1647aa5aeb457a12c19a7a94ac321e9844 (patch) | |
tree | 455f0e7b62b18c9b24dfe2829b8d9a2e378923da /sys | |
parent | 9655d5229102b5ec7158026cd6cde6d09956fef4 (diff) |
check ifp->if_hardmtu instead of ETHERMTU.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/if_stge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_stge.c b/sys/dev/pci/if_stge.c index 49d3aca3315..e2a935320a6 100644 --- a/sys/dev/pci/if_stge.c +++ b/sys/dev/pci/if_stge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_stge.c,v 1.27 2006/07/12 02:02:19 brad Exp $ */ +/* $OpenBSD: if_stge.c,v 1.28 2006/07/12 02:06:31 brad Exp $ */ /* $NetBSD: if_stge.c,v 1.27 2005/05/16 21:35:32 bouyer Exp $ */ /*- @@ -890,7 +890,7 @@ stge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) break; case SIOCSIFMTU: - if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ETHERMTU) + if (ifr->ifr_mtu < ETHERMIN || ifr->ifr_mtu > ifp->if_hardmtu) error = EINVAL; else if (ifp->if_mtu != ifr->ifr_mtu) ifp->if_mtu = ifr->ifr_mtu; |