diff options
author | luigi <luigi@FreeBSD.org> | 2002-08-09 01:48:28 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2002-08-09 01:48:28 +0000 |
commit | 08c422e95ab9e4a08b4376f764cedf7c7ab922fe (patch) | |
tree | 004bb8279e5a81302a75b36f3557a2ab05088cf9 /sys | |
parent | 99ddd54c1fccd36c0210cfba122551ef501333da (diff) | |
download | FreeBSD-src-08c422e95ab9e4a08b4376f764cedf7c7ab922fe.zip FreeBSD-src-08c422e95ab9e4a08b4376f764cedf7c7ab922fe.tar.gz |
use the new interface to ether_input(), with eh = NULL and
the MAC header in the mbuf.
MFC after: 3 days
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 2e2d502..3d8ba4c 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -1321,7 +1321,6 @@ fxp_intr_body(struct fxp_softc *sc, u_int8_t statack, int count) * instead. */ if (fxp_add_rfabuf(sc, m) == 0) { - struct ether_header *eh; int total_len; /* @@ -1339,13 +1338,8 @@ fxp_intr_body(struct fxp_softc *sc, u_int8_t statack, int count) continue; } - m->m_pkthdr.rcvif = ifp; m->m_pkthdr.len = m->m_len = total_len; - eh = mtod(m, struct ether_header *); - m->m_data += sizeof(struct ether_header); - m->m_len -= sizeof(struct ether_header); - m->m_pkthdr.len = m->m_len; - ether_input(ifp, eh, m); + ether_input(ifp, NULL, m); } } if (rnr) { |