diff options
author | archie <archie@FreeBSD.org> | 2000-05-24 00:05:44 +0000 |
---|---|---|
committer | archie <archie@FreeBSD.org> | 2000-05-24 00:05:44 +0000 |
commit | 8769573aa215ec87000fe54dcf69dc50ab3b09ec (patch) | |
tree | 99043c8ce371a443128544b2140b70df1e7f302f | |
parent | de828c2a55edea3c8bc328d49ceacc7059095431 (diff) | |
download | FreeBSD-src-8769573aa215ec87000fe54dcf69dc50ab3b09ec.zip FreeBSD-src-8769573aa215ec87000fe54dcf69dc50ab3b09ec.tar.gz |
Avoid double-call to bpf_mtap(). This is now handled in ether_input().
-rw-r--r-- | sys/dev/tx/if_tx.c | 2 | ||||
-rw-r--r-- | sys/pci/if_tx.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c index d575bca..b149460 100644 --- a/sys/dev/tx/if_tx.c +++ b/sys/dev/tx/if_tx.c @@ -921,11 +921,13 @@ epic_rx_done(sc) m->m_pkthdr.rcvif = &(sc->sc_if); m->m_pkthdr.len = m->m_len = len; +#if !defined(__FreeBSD__) #if NBPFILTER > 0 /* Give mbuf to BPFILTER */ if( sc->sc_if.if_bpf ) bpf_mtap( EPIC_BPFTAP_ARG(&sc->sc_if), m ); #endif /* NBPFILTER > 0 */ +#endif /* !__FreeBSD__ */ /* Second mbuf holds packet ifself */ m->m_pkthdr.len = m->m_len = len - sizeof(struct ether_header); diff --git a/sys/pci/if_tx.c b/sys/pci/if_tx.c index d575bca..b149460 100644 --- a/sys/pci/if_tx.c +++ b/sys/pci/if_tx.c @@ -921,11 +921,13 @@ epic_rx_done(sc) m->m_pkthdr.rcvif = &(sc->sc_if); m->m_pkthdr.len = m->m_len = len; +#if !defined(__FreeBSD__) #if NBPFILTER > 0 /* Give mbuf to BPFILTER */ if( sc->sc_if.if_bpf ) bpf_mtap( EPIC_BPFTAP_ARG(&sc->sc_if), m ); #endif /* NBPFILTER > 0 */ +#endif /* !__FreeBSD__ */ /* Second mbuf holds packet ifself */ m->m_pkthdr.len = m->m_len = len - sizeof(struct ether_header); |