aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian S.J. Peron <csjp@FreeBSD.org>2008-08-01 21:38:46 +0000
committerChristian S.J. Peron <csjp@FreeBSD.org>2008-08-01 21:38:46 +0000
commita05cf8c6db1bd6ff23def8444d3559433747ed44 (patch)
tree75b49f17a09f9a2f1494e92ce76835b34e6db380
parent9b1db8012555e6cabcde27d1c9d0e8fd53124432 (diff)
Notes
-rw-r--r--sys/net/bpf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index e11b3e0d06f62..f9f3b7de126b0 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -1583,6 +1583,12 @@ bpf_tap(struct bpf_if *bp, u_char *pkt, u_int pktlen)
LIST_FOREACH(d, &bp->bif_dlist, bd_next) {
BPFD_LOCK(d);
++d->bd_rcount;
+ /*
+ * NB: We dont call BPF_CHECK_DIRECTION() here since there is no
+ * way for the caller to indiciate to us whether this packet
+ * is inbound or outbound. In the bpf_mtap() routines, we use
+ * the interface pointers on the mbuf to figure it out.
+ */
#ifdef BPF_JITTER
if (bpf_jitter_enable != 0 && d->bd_bfilter != NULL)
slen = (*(d->bd_bfilter->func))(pkt, pktlen, pktlen);