diff options
Diffstat (limited to 'sys/arch/sparc/dev/be.c')
-rw-r--r-- | sys/arch/sparc/dev/be.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/arch/sparc/dev/be.c b/sys/arch/sparc/dev/be.c index 455e3bb9c92..3ed88aaabc3 100644 --- a/sys/arch/sparc/dev/be.c +++ b/sys/arch/sparc/dev/be.c @@ -1,4 +1,4 @@ -/* $OpenBSD: be.c,v 1.26 2001/04/13 04:32:10 brad Exp $ */ +/* $OpenBSD: be.c,v 1.27 2001/06/26 21:58:47 fgsch Exp $ */ /* * Copyright (c) 1998 Theo de Raadt and Jason L. Wright. @@ -965,7 +965,6 @@ be_read(sc, idx, len) int idx, len; { struct ifnet *ifp = &sc->sc_arpcom.ac_if; - struct ether_header *eh; struct mbuf *m; if (len <= sizeof(struct ether_header) || @@ -988,8 +987,6 @@ be_read(sc, idx, len) } ifp->if_ipackets++; - /* We assume that the header fit entirely in one mbuf. */ - eh = mtod(m, struct ether_header *); #if NBPFILTER > 0 /* @@ -999,9 +996,8 @@ be_read(sc, idx, len) if (ifp->if_bpf) bpf_mtap(ifp->if_bpf, m); #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); } /* |