diff options
author | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-06-25 04:44:29 +0000 |
---|---|---|
committer | Federico G. Schwindt <fgsch@cvs.openbsd.org> | 2001-06-25 04:44:29 +0000 |
commit | 5da44471c5dace2493589d3c440e5e6b7b06871a (patch) | |
tree | 2eb9fd6dc517f86cda4eec1ac23f876b71114746 /sys/dev/isa/if_el.c | |
parent | eb42bf70756786f3edb77fb01b9483f38f5983fd (diff) |
ether_input_mbuf() conversion.
Diffstat (limited to 'sys/dev/isa/if_el.c')
-rw-r--r-- | sys/dev/isa/if_el.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/isa/if_el.c b/sys/dev/isa/if_el.c index 0701018b504..f49bd8bef2e 100644 --- a/sys/dev/isa/if_el.c +++ b/sys/dev/isa/if_el.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_el.c,v 1.14 2001/06/23 21:54:49 fgsch Exp $ */ +/* $OpenBSD: if_el.c,v 1.15 2001/06/25 04:44:28 fgsch Exp $ */ /* $NetBSD: if_el.c,v 1.39 1996/05/12 23:52:32 mycroft Exp $ */ /* @@ -493,7 +493,6 @@ elread(sc, len) { struct ifnet *ifp = &sc->sc_arpcom.ac_if; struct mbuf *m; - struct ether_header *eh; if (len <= sizeof(struct ether_header) || len > ETHER_MAX_LEN) { @@ -512,9 +511,6 @@ elread(sc, 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. @@ -524,9 +520,7 @@ elread(sc, len) bpf_mtap(ifp->if_bpf, m); #endif - /* We assume that the header fit entirely in one mbuf. */ - m_adj(m, sizeof(struct ether_header)); - ether_input(ifp, eh, m); + ether_input_mbuf(ifp, m); } /* |