mirror of
https://github.com/opnsense/src.git
synced 2026-04-28 09:37:08 -04:00
Call bpf_mtap() on outgoing packets.
This commit is contained in:
parent
ec6b67d043
commit
08e0fdeb39
1 changed files with 6 additions and 3 deletions
|
|
@ -45,6 +45,7 @@
|
|||
#include <sys/socket.h>
|
||||
#include <sys/sockio.h>
|
||||
|
||||
#include <net/bpf.h>
|
||||
#include <net/ethernet.h>
|
||||
#include <net/if.h>
|
||||
#include <net/if_arp.h>
|
||||
|
|
@ -1224,12 +1225,14 @@ gem_start(ifp)
|
|||
break;
|
||||
}
|
||||
|
||||
if (m != NULL)
|
||||
m_freem(m0);
|
||||
|
||||
/*
|
||||
* WE ARE NOW COMMITTED TO TRANSMITTING THE PACKET.
|
||||
*/
|
||||
if (ifp->if_bpf != NULL)
|
||||
bpf_mtap(ifp, m0);
|
||||
|
||||
if (m != NULL)
|
||||
m_freem(m0);
|
||||
|
||||
#ifdef GEM_DEBUG
|
||||
if (ifp->if_flags & IFF_DEBUG) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue