summaryrefslogtreecommitdiff
path: root/sys/dev/ic/xl.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-23 23:17:36 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-23 23:17:36 +0000
commitf139277161f7fed7cfbee0d4f2f2e8176d57e063 (patch)
tree02caa9747dc8ddc4078e082c659aff63c2c07579 /sys/dev/ic/xl.c
parent5cbca6f215a52337972ce82ec925fd7bfa799e31 (diff)
ether_input_mbuf().
Diffstat (limited to 'sys/dev/ic/xl.c')
-rw-r--r--sys/dev/ic/xl.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/dev/ic/xl.c b/sys/dev/ic/xl.c
index c41f7556712..6c9726b702b 100644
--- a/sys/dev/ic/xl.c
+++ b/sys/dev/ic/xl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xl.c,v 1.23 2001/04/08 01:05:12 aaron Exp $ */
+/* $OpenBSD: xl.c,v 1.24 2001/06/23 23:17:35 fgsch Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -1188,7 +1188,6 @@ int xl_rx_resync(sc)
void xl_rxeof(sc)
struct xl_softc *sc;
{
- struct ether_header *eh;
struct mbuf *m;
struct ifnet *ifp;
struct xl_chain_onefrag *cur_rx;
@@ -1246,22 +1245,17 @@ again:
}
ifp->if_ipackets++;
- eh = mtod(m, struct ether_header *);
m->m_pkthdr.rcvif = ifp;
+ m->m_pkthdr.len = m->m_len = total_len;
#if NBPFILTER > 0
/*
* Handle BPF listeners. Let the BPF user see the packet.
*/
if (ifp->if_bpf) {
- m->m_pkthdr.len = m->m_len = total_len;
bpf_mtap(ifp->if_bpf, m);
}
#endif
- /* Remove header from mbuf and pass it on. */
- m->m_pkthdr.len = m->m_len =
- total_len - sizeof(struct ether_header);
- m->m_data += sizeof(struct ether_header);
- ether_input(ifp, eh, m);
+ ether_input_mbuf(ifp, m);
}
/*