summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-06-20 08:47:59 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-06-20 08:47:59 +0000
commit60e6f382b33f55c9ea446efb9dee10e7d6848b51 (patch)
tree14d020739b7a846111ba666b181ea30372ac6b54 /sbin
parentaf8f59aac7883020bbd040d5b2d872d4ee75fa29 (diff)
Copy address family from inet/inet6 keyword, if specified.
Diffstat (limited to 'sbin')
-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 3f2ae8dbaee..e470fa36cae 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.103 2002/06/18 21:05:17 frantzen Exp $ */
+/* $OpenBSD: parse.y,v 1.104 2002/06/20 08:47:58 dhartmei Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -1408,6 +1408,7 @@ rdrrule : no RDR interface af proto FROM ipspec TO ipspec dport redirection
sizeof(rdr.ifname));
rdr.ifnot = $3->not;
}
+ rdr.af = $4;
if ($5 != NULL) {
rdr.proto = $5->proto;
free($5);