diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-06-25 04:05:52 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-06-25 04:05:52 +0000 |
commit | 4adf18f7131d3e1444e46c6c799d21dcf9331d79 (patch) | |
tree | 2a3cb7b788625fe873187e4e7595a19acf80a41b /sys/dev/pcmcia/if_xe.c | |
parent | 5a87a559ec775f196e6bd9bceea8f9384140850a (diff) |
ether_input_mbuf() conversion.
Diffstat (limited to 'sys/dev/pcmcia/if_xe.c')
-rw-r--r-- | sys/dev/pcmcia/if_xe.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/pcmcia/if_xe.c b/sys/dev/pcmcia/if_xe.c index cba55cbebab..5ab49083ea2 100644 --- a/sys/dev/pcmcia/if_xe.c +++ b/sys/dev/pcmcia/if_xe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_xe.c,v 1.19 2001/06/23 21:54:57 fgsch Exp $ */ +/* $OpenBSD: if_xe.c,v 1.20 2001/06/25 04:05:51 fgsch Exp $ */ /* * Copyright (c) 1999 Niklas Hallqvist, Brandon Creighton, Job de Haas @@ -769,7 +769,6 @@ xe_get(sc) struct ifnet *ifp = &sc->sc_arpcom.ac_if; u_int16_t pktlen, len, recvcount = 0; u_int8_t *data; - struct ether_header *eh; PAGE(sc, 0); rsr = bus_space_read_1(sc->sc_bst, sc->sc_bsh, sc->sc_offset + RSR); @@ -842,15 +841,12 @@ xe_get(sc) ifp->if_ipackets++; - eh = mtod(top, struct ether_header *); - #if NBPFILTER > 0 if (ifp->if_bpf) bpf_mtap(ifp->if_bpf, top); #endif - m_adj(top, sizeof(struct ether_header)); - ether_input(ifp, eh, top); + ether_input_mbuf(ifp, top); return (recvcount); } |