summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-02-19 22:00:21 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-02-19 22:00:21 +0000
commit14692fca9ef8787afba154588a8400971d65a8b5 (patch)
treeaa2c9f70b6492a302894864b81cc487b91de70d6 /sbin/pfctl
parent0f036e1a4f7404ce4f3bd7108672f2b2912e26e8 (diff)
Make 'from (kue0)/24' work again (dynamic interface name translation with
a /prefix), reported by Jason Dixon. ok henning@
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/parse.y10
1 files changed, 8 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 164e72ae1ef..757e50c5c7e 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.324 2003/02/19 21:54:46 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.325 2003/02/19 22:00:20 dhartmei Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -1549,7 +1549,13 @@ xhost : not host {
;
host : address
- | STRING '/' number { $$ = host($1, $3); }
+ | address '/' number {
+ struct node_host *n;
+
+ $$ = $1;
+ for (n = $1; n != NULL; n = n->next)
+ set_ipmask(n, $3);
+ }
| PORTUNARY STRING PORTUNARY {
if ($1 != PF_OP_LT || $3 != PF_OP_GT)
YYERROR;