summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_fe.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_fe.c
parenteb42bf70756786f3edb77fb01b9483f38f5983fd (diff)
ether_input_mbuf() conversion.
Diffstat (limited to 'sys/dev/isa/if_fe.c')
-rw-r--r--sys/dev/isa/if_fe.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/isa/if_fe.c b/sys/dev/isa/if_fe.c
index 6ae43f97751..95cf28caa77 100644
--- a/sys/dev/isa/if_fe.c
+++ b/sys/dev/isa/if_fe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_fe.c,v 1.14 2001/06/23 21:54:50 fgsch Exp $ */
+/* $OpenBSD: if_fe.c,v 1.15 2001/06/25 04:44:28 fgsch Exp $ */
/*
* All Rights Reserved, Copyright (C) Fujitsu Limited 1995
@@ -2017,7 +2017,6 @@ fe_get_packet(sc, len)
struct fe_softc *sc;
int len;
{
- struct ether_header *eh;
struct mbuf *m;
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
@@ -2057,7 +2056,6 @@ fe_get_packet(sc, len)
* header mbuf.
*/
m->m_data += EOFF;
- eh = mtod(m, struct ether_header *);
/* Set the length of this packet. */
m->m_len = len;
@@ -2074,9 +2072,7 @@ fe_get_packet(sc, len)
bpf_mtap(ifp->if_bpf, m);
#endif
- /* Fix up data start offset in mbuf to point past ether header. */
- m_adj(m, sizeof(struct ether_header));
- ether_input(ifp, eh, m);
+ ether_input_mbuf(ifp, m);
return (1);
}