summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-07-09 22:28:28 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2001-07-09 22:28:28 +0000
commitdfe67cd3031b6906561a9103a526891a2839de91 (patch)
tree0b30353418ab75788c7ec6a787bc7e0ab1f962e5 /sys/arch/mvme88k/dev
parentafc166d71159a00f76b52d00d9e67c22a895fd0e (diff)
trivial ether_input_mbuf().
btw, shouldn't this code share the am7990 core?
Diffstat (limited to 'sys/arch/mvme88k/dev')
-rw-r--r--sys/arch/mvme88k/dev/if_ve.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/arch/mvme88k/dev/if_ve.c b/sys/arch/mvme88k/dev/if_ve.c
index e528830b612..15ad3fc720e 100644
--- a/sys/arch/mvme88k/dev/if_ve.c
+++ b/sys/arch/mvme88k/dev/if_ve.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ve.c,v 1.6 2001/03/09 05:44:39 smurph Exp $ */
+/* $OpenBSD: if_ve.c,v 1.7 2001/07/09 22:28:27 fgsch Exp $ */
/*-
* Copyright (c) 1999 Steve Murphree, Jr.
* Copyright (c) 1982, 1992, 1993
@@ -664,7 +664,9 @@ ve_read(sc, boff, len)
int boff, len;
{
struct mbuf *m;
+#ifdef LANCE_REVC_BUG
struct ether_header *eh;
+#endif
if (len <= sizeof(struct ether_header) ||
len > ETHERMTU + sizeof(struct ether_header)) {
@@ -685,9 +687,6 @@ ve_read(sc, boff, 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.
@@ -712,9 +711,8 @@ ve_read(sc, boff, len)
}
#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);
}
integrate void