summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl_parser.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-10-07 13:23:47 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-10-07 13:23:47 +0000
commit9a1ae8a3403401c51ee4440082a38a1279e43187 (patch)
tree91e58b571c2eb9b36915a842827703e4ce978c47 /sbin/pfctl/pfctl_parser.c
parentbbe6ac11b13217876746615b3fc538e1f5063ff4 (diff)
set block-policy [drop|return]
drop is default, same behaviour as before support block drop to override a return policy
Diffstat (limited to 'sbin/pfctl/pfctl_parser.c')
-rw-r--r--sbin/pfctl/pfctl_parser.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c
index 0f97da42543..5b7f23cdbfe 100644
--- a/sbin/pfctl/pfctl_parser.c
+++ b/sbin/pfctl/pfctl_parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_parser.c,v 1.98 2002/10/07 13:18:40 henning Exp $ */
+/* $OpenBSD: pfctl_parser.c,v 1.99 2002/10/07 13:23:46 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -632,7 +632,9 @@ print_rule(struct pf_rule *r)
printf("pass ");
else if (r->action == PF_DROP) {
printf("block ");
- if (r->rule_flag & PFRULE_RETURNRST) {
+ if (r->rule_flag & PFRULE_RETURN)
+ printf("return ");
+ else if (r->rule_flag & PFRULE_RETURNRST) {
if (!r->return_ttl)
printf("return-rst ");
else