summaryrefslogtreecommitdiff
path: root/sys/dev/isa/if_ef_isapnp.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_ef_isapnp.c
parenteb42bf70756786f3edb77fb01b9483f38f5983fd (diff)
ether_input_mbuf() conversion.
Diffstat (limited to 'sys/dev/isa/if_ef_isapnp.c')
-rw-r--r--sys/dev/isa/if_ef_isapnp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/isa/if_ef_isapnp.c b/sys/dev/isa/if_ef_isapnp.c
index 9762d802b09..cf9e28652c8 100644
--- a/sys/dev/isa/if_ef_isapnp.c
+++ b/sys/dev/isa/if_ef_isapnp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ef_isapnp.c,v 1.11 2001/06/23 21:54:48 fgsch Exp $ */
+/* $OpenBSD: if_ef_isapnp.c,v 1.12 2001/06/25 04:44:28 fgsch Exp $ */
/*
* Copyright (c) 1999 Jason L. Wright (jason@thought.net)
@@ -693,7 +693,6 @@ efread(sc)
bus_space_handle_t ioh = sc->sc_ioh;
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
struct mbuf *m;
- struct ether_header *eh;
int len;
len = bus_space_read_2(iot, ioh, EF_W1_RX_STATUS);
@@ -742,15 +741,12 @@ efread(sc)
ifp->if_ipackets++;
- eh = mtod(m, struct ether_header *);
-
#if NBPFILTER > 0
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m);
#endif
- m_adj(m, sizeof(struct ether_header));
- ether_input(ifp, eh, m);
+ ether_input_mbuf(ifp, m);
}
struct mbuf *