diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2008-10-14 18:01:54 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2008-10-14 18:01:54 +0000 |
commit | cbc88b3c14c04595503ce45046c13a37f77b5385 (patch) | |
tree | 71c6224ee28a75e73b9d01d08760ae100cbe250b /sys/dev/pcmcia/if_malo.c | |
parent | 8e9707c8a7ef0ba1ba66f02dfad7dda445bf55c5 (diff) |
Change m_devget()'s outdated and unused "offset" argument: It is
now the offset into the first mbuf of the target chain before copying
the source data over. From FreeBSD.
Convert drivers' use of m_devget(). Mostly from thib@.
Update mbuf(9) man page.
ok claudio@, thib@
Diffstat (limited to 'sys/dev/pcmcia/if_malo.c')
-rw-r--r-- | sys/dev/pcmcia/if_malo.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/pcmcia/if_malo.c b/sys/dev/pcmcia/if_malo.c index d8ff907f818..ba2395d7a66 100644 --- a/sys/dev/pcmcia/if_malo.c +++ b/sys/dev/pcmcia/if_malo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_malo.c,v 1.63 2008/07/29 10:05:38 thib Exp $ */ +/* $OpenBSD: if_malo.c,v 1.64 2008/10/14 18:01:53 naddy Exp $ */ /* * Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org> @@ -927,14 +927,13 @@ cmalo_rx(struct malo_softc *sc) rxdesc->pkglen -= sizeof(struct llc); /* prepare mbuf */ - m = m_devget(sc->sc_data + rxdesc->pkgoffset - ETHER_ALIGN, - rxdesc->pkglen + ETHER_ALIGN, 0, ifp, NULL); + m = m_devget(sc->sc_data + rxdesc->pkgoffset, + rxdesc->pkglen, ETHER_ALIGN, ifp, NULL); if (m == NULL) { DPRINTF(1, "RX m_devget failed!\n"); ifp->if_ierrors++; return; } - m_adj(m, ETHER_ALIGN); #if NBPFILTER > 0 if (ifp->if_bpf) |