Avoid double-call to bpf_mtap(). This is now handled in ether_input().

This commit is contained in:
Archie Cobbs 2000-05-24 00:05:44 +00:00
parent 7ecff35b0d
commit d61b89e4b3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60837
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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);