summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-10-07 12:59:56 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-10-07 12:59:56 +0000
commitd06dba9ad473b167b4612045b483d44682afd80d (patch)
treee3482e20a8d3ff56feee8b5329c5b1db65a51dcc /sbin
parentb645be9b9e878ea84b8e1cff2de6be4795a17150 (diff)
use a new rule_flag PFRULE_RETURNICMP to decide wether to return-icmp or not
instead of just testing return_icmp > 0 ok dhartmei@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/parse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 146969840e6..6f649cfbdae 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.158 2002/10/07 12:39:29 dhartmei Exp $ */
+/* $OpenBSD: parse.y,v 1.159 2002/10/07 12:59:55 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -458,8 +458,10 @@ pfrule : action dir logquick interface route af proto fromto
if ($1.b2) {
r.rule_flag |= PFRULE_RETURNRST;
r.return_ttl = $1.w;
- } else
+ } else {
+ r.rule_flag |= PFRULE_RETURNICMP;
r.return_icmp = $1.w;
+ }
r.direction = $2;
r.log = $3.log;
r.quick = $3.quick;