summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev/hme.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-26 21:58:49 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-26 21:58:49 +0000
commit41e8b7393c45a4dcedd3de6ce2434478ea33d26d (patch)
tree43b2b22577d60341ffd120f2941fe2b5f729c03d /sys/arch/sparc/dev/hme.c
parent416f561c78b0eca90fdb484e72a96080b0825dca (diff)
trivial ether_input_mbuf() conversions.
Diffstat (limited to 'sys/arch/sparc/dev/hme.c')
-rw-r--r--sys/arch/sparc/dev/hme.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/sparc/dev/hme.c b/sys/arch/sparc/dev/hme.c
index 5e81d2be22a..8392ae63e52 100644
--- a/sys/arch/sparc/dev/hme.c
+++ b/sys/arch/sparc/dev/hme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hme.c,v 1.31 2001/02/20 19:39:34 mickey Exp $ */
+/* $OpenBSD: hme.c,v 1.32 2001/06/26 21:58:48 fgsch Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright (jason@thought.net)
@@ -828,7 +828,6 @@ hme_read(sc, idx, len)
int idx, len;
{
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
- struct ether_header *eh;
struct mbuf *m;
if (len <= sizeof(struct ether_header) ||
@@ -850,9 +849,6 @@ hme_read(sc, idx, len)
ifp->if_ipackets++;
- /* We assume that the header fit entirely in one mbuf. */
- eh = mtod(m, struct ether_header *);
-
#if NBPFILTER > 0
/*
* Check if there's a BPF listener on this interface.
@@ -861,9 +857,8 @@ hme_read(sc, idx, len)
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m);
#endif
- /* Pass the packet up, with the ether header sort-of removed. */
- m_adj(m, sizeof(struct ether_header));
- ether_input(ifp, eh, m);
+ /* Pass the packet up. */
+ ether_input_mbuf(ifp, m);
}
/*