From d06dba9ad473b167b4612045b483d44682afd80d Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Mon, 7 Oct 2002 12:59:56 +0000 Subject: use a new rule_flag PFRULE_RETURNICMP to decide wether to return-icmp or not instead of just testing return_icmp > 0 ok dhartmei@ --- sbin/pfctl/parse.y | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sbin') 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; -- cgit v1.2.3