summaryrefslogtreecommitdiff
path: root/sys/dev/ic/smc91cxx.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/smc91cxx.c
parent5cbca6f215a52337972ce82ec925fd7bfa799e31 (diff)
ether_input_mbuf().
Diffstat (limited to 'sys/dev/ic/smc91cxx.c')
-rw-r--r--sys/dev/ic/smc91cxx.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/ic/smc91cxx.c b/sys/dev/ic/smc91cxx.c
index 478aef8597a..986156b765c 100644
--- a/sys/dev/ic/smc91cxx.c
+++ b/sys/dev/ic/smc91cxx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smc91cxx.c,v 1.9 2001/06/23 21:54:46 fgsch Exp $ */
+/* $OpenBSD: smc91cxx.c,v 1.10 2001/06/23 23:17:35 fgsch Exp $ */
/* $NetBSD: smc91cxx.c,v 1.11 1998/08/08 23:51:41 mycroft Exp $ */
/*-
@@ -846,7 +846,6 @@ smc91cxx_read(sc)
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
bus_space_tag_t bst = sc->sc_bst;
bus_space_handle_t bsh = sc->sc_bsh;
- struct ether_header *eh;
struct mbuf *m;
u_int16_t status, packetno, packetlen;
u_int8_t *data;
@@ -912,7 +911,6 @@ smc91cxx_read(sc)
/*
* Pull the packet off the interface.
*/
- eh = mtod(m, struct ether_header *);
data = mtod(m, u_int8_t *);
bus_space_read_multi_2(bst, bsh, DATA_REG_W, (u_int16_t *)data,
packetlen >> 1);
@@ -932,13 +930,7 @@ smc91cxx_read(sc)
bpf_mtap(ifp->if_bpf, m);
#endif
- /*
- * Strip the ethernet header.
- */
- m->m_pkthdr.len = m->m_len = packetlen - sizeof(struct ether_header);
- m->m_data += sizeof(struct ether_header);
-
- ether_input(ifp, eh, m);
+ ether_input_mbuf(ifp, m);
out:
/*