Avoid double-call to bpf_mtap(). This is now handled in ether_input().
This commit is contained in:
parent
7ecff35b0d
commit
d61b89e4b3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=60837
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user