diff options
author | Robert Watson <rwatson@FreeBSD.org> | 2002-09-21 00:59:56 +0000 |
---|---|---|
committer | Robert Watson <rwatson@FreeBSD.org> | 2002-09-21 00:59:56 +0000 |
commit | 0c7fb5347cd38d724f34bacd8f4992a1ea9cc30d (patch) | |
tree | e89bd0253478ce6b1be86d40823459368d7a2f94 | |
parent | 99330f83685677576370e14645a3fbd239c7c7cf (diff) | |
download | src-test2-0c7fb5347cd38d724f34bacd8f4992a1ea9cc30d.tar.gz src-test2-0c7fb5347cd38d724f34bacd8f4992a1ea9cc30d.zip |
Notes
-rw-r--r-- | sys/net/bpf.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index f1943a45957a..eeee0a3831a1 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1136,7 +1136,11 @@ bpf_mtap(ifp, m) ++d->bd_rcount; slen = bpf_filter(d->bd_filter, (u_char *)m, pktlen, 0); if (slen != 0) - catchpacket(d, (u_char *)m, pktlen, slen, bpf_mcopy); +#ifdef MAC + if (mac_check_bpfdesc_receive(d, ifp) == 0) +#endif + catchpacket(d, (u_char *)m, pktlen, slen, + bpf_mcopy); BPFD_UNLOCK(d); } BPFIF_UNLOCK(bp); |