summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-25 04:47:34 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-06-25 04:47:34 +0000
commitac2d88f8749e9583cf42e6b99e833be0f2585b8a (patch)
tree7bd7e5886d12f4adab36f61668c2b07bef0b4012 /sys/dev
parentb5125bdc6587a2c5d19869449beaa67d9e9ed3ba (diff)
ether_input_mbuf().
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ofw/ofnet.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/ofw/ofnet.c b/sys/dev/ofw/ofnet.c
index 17c811d1fca..0d7e9ae6e1a 100644
--- a/sys/dev/ofw/ofnet.c
+++ b/sys/dev/ofw/ofnet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofnet.c,v 1.4 2001/02/20 19:39:42 mickey Exp $ */
+/* $OpenBSD: ofnet.c,v 1.5 2001/06/25 04:47:33 fgsch Exp $ */
/* $NetBSD: ofnet.c,v 1.4 1996/10/16 19:33:21 ws Exp $ */
/*
@@ -173,7 +173,6 @@ ofnread(of)
struct ofn_softc *of;
{
struct ifnet *ifp = &of->sc_arpcom.ac_if;
- struct ether_header *eh;
struct mbuf *m, **mp, *head;
int l, len;
char *bufp;
@@ -232,15 +231,13 @@ ofnread(of)
}
if (head == 0)
continue;
- eh = mtod(head, struct ether_header *);
#if NBPFILTER > 0
if (ifp->if_bpf) {
bpf->mtap(ifp->if_bpf, m);
#endif
- m_adj(head, sizeof(struct ether_header));
ifp->if_ipackets++;
- ether_input(ifp, eh, head);
+ ether_input_mbuf(ifp, head);
}
}