diff options
author | 2003-02-19 22:00:20 +0000 | |
---|---|---|
committer | 2003-02-19 22:00:20 +0000 | |
commit | 88de5227785d5f5ee65df8dcf8ddfda311cabbd6 (patch) | |
tree | 11a420751b9325cf2f9ad441a99ac6b0a03f791c | |
parent | better error message on icmp version / address family mismatch (diff) | |
download | wireguard-openbsd-88de5227785d5f5ee65df8dcf8ddfda311cabbd6.tar.xz wireguard-openbsd-88de5227785d5f5ee65df8dcf8ddfda311cabbd6.zip |
Make 'from (kue0)/24' work again (dynamic interface name translation with
a /prefix), reported by Jason Dixon. ok henning@
-rw-r--r-- | sbin/pfctl/parse.y | 10 |
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; |