summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2010-09-24 02:06:48 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2010-09-24 02:06:48 +0000
commit63c85acef9383dd62e44135ad7cbb363d741cb91 (patch)
tree7afd975b3205629d5a302571cc9f0e7a775a70c6 /sys/net
parent6e50772f4a7ef79a1da812013b01873d8f6322c9 (diff)
hello, this is captain obvious speaking:
/* XXX This does NOT affect pass rules! */ SLIST_FOREACH(ri, &s->match_rules, entry) { ... delete that comment, entirely superfluous
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index a4764c9367c..12428ad8b5b 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.709 2010/09/24 01:56:12 henning Exp $ */
+/* $OpenBSD: pf.c,v 1.710 2010/09/24 02:06:47 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -5799,12 +5799,6 @@ pf_counters_inc(int dir, int action, struct pf_pdesc *pd,
s->packets[dirndx]++;
s->bytes[dirndx] += pd->tot_len;
- /*
- * We want to increase counters on _all_ rules
- * that were matched during processing.
- * XXX This does NOT affect pass rules!
- * XXX Change this in pf_test_rule()?
- */
SLIST_FOREACH(ri, &s->match_rules, entry) {
ri->r->packets[dirndx]++;
ri->r->bytes[dirndx] += pd->tot_len;