diff options
author | Chris Cappuccio <chris@cvs.openbsd.org> | 2000-04-27 00:32:10 +0000 |
---|---|---|
committer | Chris Cappuccio <chris@cvs.openbsd.org> | 2000-04-27 00:32:10 +0000 |
commit | 1dd6118a8dfa9fbefa2027938842518ea78778a4 (patch) | |
tree | e2152bd61f4c6829b74e8ee721d85c4c0a3df757 | |
parent | a47d37c1b6a680ed4b35e9858dee74f2e8d33cd8 (diff) |
Cleanup SIOCSIFMTU
-rw-r--r-- | sys/dev/pci/if_lmc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_lmc.c b/sys/dev/pci/if_lmc.c index 6d2e33371c7..cc3989f1b76 100644 --- a/sys/dev/pci/if_lmc.c +++ b/sys/dev/pci/if_lmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_lmc.c,v 1.5 2000/02/06 20:56:02 chris Exp $ */ +/* $OpenBSD: if_lmc.c,v 1.6 2000/04/27 00:32:09 chris Exp $ */ /* $NetBSD: if_lmc.c,v 1.1 1999/03/25 03:32:43 explorer Exp $ */ /*- @@ -1228,9 +1228,6 @@ lmc_ifioctl(struct ifnet * ifp, ioctl_cmd_t cmd, caddr_t data) break; #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) -#if !defined(ifr_mtu) -#define ifr_mtu ifr_metric -#endif case SIOCSIFMTU: /* * Don't allow the MTU to get larger than we can handle @@ -1238,7 +1235,10 @@ lmc_ifioctl(struct ifnet * ifp, ioctl_cmd_t cmd, caddr_t data) if (ifr->ifr_mtu > LMC_MTU) { error = EINVAL; goto out; + } else { + ifp->if_mtu = ifr->ifr_mtu; } + break; #endif } |