summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2002-09-21 00:59:56 +0000
committerRobert Watson <rwatson@FreeBSD.org>2002-09-21 00:59:56 +0000
commit0c7fb5347cd38d724f34bacd8f4992a1ea9cc30d (patch)
treee89bd0253478ce6b1be86d40823459368d7a2f94
parent99330f83685677576370e14645a3fbd239c7c7cf (diff)
downloadsrc-test2-0c7fb5347cd38d724f34bacd8f4992a1ea9cc30d.tar.gz
src-test2-0c7fb5347cd38d724f34bacd8f4992a1ea9cc30d.zip
Notes
-rw-r--r--sys/net/bpf.c6
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);