summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2002-06-13 04:26:01 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2002-06-13 04:26:01 +0000
commitd499d9724d2b1fb08b4eda084b0b6faf1f2a28f9 (patch)
tree0f70bb79353a099c42828d0cbe66efbafc90403a /sbin/pfctl
parent4f68c5aeaa9e6052e19bb144acea3172d58b0df1 (diff)
Fix the numbering of scrub rules. pointed out and oked by frantzen@
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 6edaf8322cc..be8f0cdef48 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.98 2002/06/12 18:35:07 kjell Exp $ */
+/* $OpenBSD: parse.y,v 1.99 2002/06/13 04:26:00 kjell Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -280,6 +280,7 @@ scrubrule : SCRUB dir interface fromto nodf minttl maxmss fragcache
if ($8)
r.rule_flag |= $8;
+ r.nr = pf->rule_nr++;
pfctl_add_rule(pf, &r);
}