summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_eg.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-25 04:44:29 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-25 04:44:29 +0000
commit5da44471c5dace2493589d3c440e5e6b7b06871a (patch)
tree2eb9fd6dc517f86cda4eec1ac23f876b71114746 /sys/dev/isa/if_eg.c
parenteb42bf70756786f3edb77fb01b9483f38f5983fd (diff)
ether_input_mbuf() conversion.
Diffstat (limited to 'sys/dev/isa/if_eg.c')
-rw-r--r--sys/dev/isa/if_eg.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/isa/if_eg.c b/sys/dev/isa/if_eg.c
index d21ffad6a85..e6784ec5e64 100644
--- a/sys/dev/isa/if_eg.c
+++ b/sys/dev/isa/if_eg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_eg.c,v 1.19 2001/06/23 21:54:49 fgsch Exp $ */
+/* $OpenBSD: if_eg.c,v 1.20 2001/06/25 04:44:28 fgsch Exp $ */
/* $NetBSD: if_eg.c,v 1.26 1996/05/12 23:52:27 mycroft Exp $ */
/*
@@ -681,7 +681,6 @@ egread(sc, buf, len)
{
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
struct mbuf *m;
- struct ether_header *eh;
if (len <= sizeof(struct ether_header) ||
len > ETHER_MAX_LEN) {
@@ -700,9 +699,6 @@ egread(sc, buf, len)
ifp->if_ipackets++;
- /* We assume 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.
@@ -712,9 +708,7 @@ egread(sc, buf, len)
bpf_mtap(ifp->if_bpf, m);
#endif
- /* We assume the header fit entirely in one mbuf. */
- m_adj(m, sizeof(struct ether_header));
- ether_input(ifp, eh, m);
+ ether_input_mbuf(ifp, m);
}
/*