aboutsummaryrefslogtreecommitdiff
path: root/pfctl/parse.y
diff options
context:
space:
mode:
authorMax Laier <mlaier@FreeBSD.org>2008-12-10 20:54:37 +0000
committerMax Laier <mlaier@FreeBSD.org>2008-12-10 20:54:37 +0000
commitb39deb12b639171038aee6f8770d9bbd44c34fd1 (patch)
tree37d43f190cb4a8b1aa5c8cf2b4c9039df5e702d4 /pfctl/parse.y
parentd46fa87826758f8723e0b266bbfc4e286fababdb (diff)
downloadsrc-b39deb12b639171038aee6f8770d9bbd44c34fd1.tar.gz
src-b39deb12b639171038aee6f8770d9bbd44c34fd1.zip
Import OPENBSD_4_2_BASEvendor/pf/4.2
Notes
Notes: svn path=/vendor/pf/dist/; revision=185876 svn path=/vendor/pf/4.2/; revision=185877; tag=vendor/pf/4.2
Diffstat (limited to 'pfctl/parse.y')
-rw-r--r--pfctl/parse.y15
1 files changed, 8 insertions, 7 deletions
diff --git a/pfctl/parse.y b/pfctl/parse.y
index ef5d77b6ec4c..a491f3ead7da 100644
--- a/pfctl/parse.y
+++ b/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.517 2007/02/03 23:26:40 dhartmei Exp $ */
+/* $OpenBSD: parse.y,v 1.519 2007/06/21 19:30:03 henning Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -425,7 +425,7 @@ typedef struct {
%type <v.number> tos not yesno
%type <v.i> no dir af fragcache optimizer
%type <v.i> sourcetrack flush unaryop statelock
-%type <v.b> action nataction natpass scrubaction
+%type <v.b> action nataction natpasslog scrubaction
%type <v.b> flags flag blockspec
%type <v.range> port rport
%type <v.hashkey> hashkey
@@ -3439,12 +3439,13 @@ redirection : /* empty */ { $$ = NULL; }
}
;
-natpass : /* empty */ { $$.b1 = $$.b2 = 0; }
- | PASS { $$.b1 = 1; $$.b2 = 0; }
+natpasslog : /* empty */ { $$.b1 = $$.b2 = 0; $$.w2 = 0; }
+ | PASS { $$.b1 = 1; $$.b2 = 0; $$.w2 = 0; }
| PASS log { $$.b1 = 1; $$.b2 = $2.log; $$.w2 = $2.logif; }
+ | log { $$.b1 = 0; $$.b2 = $1.log; $$.w2 = $1.logif; }
;
-nataction : no NAT natpass {
+nataction : no NAT natpasslog {
if ($1 && $3.b1) {
yyerror("\"pass\" not valid with \"no\"");
YYERROR;
@@ -3457,7 +3458,7 @@ nataction : no NAT natpass {
$$.w = $3.b2;
$$.w2 = $3.w2;
}
- | no RDR natpass {
+ | no RDR natpasslog {
if ($1 && $3.b1) {
yyerror("\"pass\" not valid with \"no\"");
YYERROR;
@@ -3631,7 +3632,7 @@ natrule : nataction interface af proto fromto tag tagged rtable
}
;
-binatrule : no BINAT natpass interface af proto FROM host TO ipspec tag
+binatrule : no BINAT natpasslog interface af proto FROM host TO ipspec tag
tagged rtable redirection
{
struct pf_rule binat;