diff options
author | dg <dg@FreeBSD.org> | 1995-06-22 07:03:20 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1995-06-22 07:03:20 +0000 |
commit | 5eba76030c8ad21550af156dc834fd9721e62149 (patch) | |
tree | ec3adb53f35b58390cc1a9130d57a28b50d18845 /sys/i386 | |
parent | 0f4b3165a0f1b112d26ab2845482c29b2a0552c6 (diff) | |
download | FreeBSD-src-5eba76030c8ad21550af156dc834fd9721e62149.zip FreeBSD-src-5eba76030c8ad21550af156dc834fd9721e62149.tar.gz |
Use ifr_mtu for the mtu value rather than ifr_metric.
Diffstat (limited to 'sys/i386')
-rw-r--r-- | sys/i386/isa/lpt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/isa/lpt.c b/sys/i386/isa/lpt.c index e708ab1..183b098 100644 --- a/sys/i386/isa/lpt.c +++ b/sys/i386/isa/lpt.c @@ -46,7 +46,7 @@ * SUCH DAMAGE. * * from: unknown origin, 386BSD 0.1 - * $Id: lpt.c,v 1.30 1995/05/30 08:02:42 rgrimes Exp $ + * $Id: lpt.c,v 1.31 1995/06/21 10:23:23 davidg Exp $ */ /* @@ -904,18 +904,18 @@ lpioctl (struct ifnet *ifp, int cmd, caddr_t data) case SIOCSIFMTU: ptr = sc->sc_ifbuf; - sc->sc_ifbuf = malloc(ifr->ifr_metric+LPIPHDRLEN, M_DEVBUF, M_NOWAIT); + sc->sc_ifbuf = malloc(ifr->ifr_mtu+LPIPHDRLEN, M_DEVBUF, M_NOWAIT); if (!sc->sc_ifbuf) { sc->sc_ifbuf = ptr; return ENOBUFS; } if (ptr) free(ptr,M_DEVBUF); - sc->sc_if.if_mtu = ifr->ifr_metric; + sc->sc_if.if_mtu = ifr->ifr_mtu; break; case SIOCGIFMTU: - ifr->ifr_metric = sc->sc_if.if_mtu; + ifr->ifr_mtu = sc->sc_if.if_mtu; break; default: |