1
0
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:
Bill Fenner 2002-07-30 21:47:14 +00:00
parent 95fab37ea8
commit e34c1b84b7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=100980

View File

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