mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Call bpf_mtap() on output, to catch outgoing packets for e.g. tcpdump .
This commit is contained in:
parent
95fab37ea8
commit
e34c1b84b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100980
@ -70,6 +70,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>
|
||||
@ -1052,8 +1053,11 @@ hme_start(struct ifnet *ifp)
|
||||
ifp->if_flags |= IFF_OACTIVE;
|
||||
IF_PREPEND(&ifp->if_snd, m);
|
||||
break;
|
||||
} else
|
||||
} else {
|
||||
enq = 1;
|
||||
if (ifp->if_bpf)
|
||||
bpf_mtap(ifp, m);
|
||||
}
|
||||
}
|
||||
|
||||
if (sc->sc_rb.rb_td_nbusy == HME_NTXDESC || error == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user