[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
small pfctl gem I had in my trees for ages
- To: tech_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Subject: small pfctl gem I had in my trees for ages
- From: Henning Brauer <henning_(_at_)_openbsd_(_dot_)_org>
- Date: Tue, 4 Apr 2006 17:31:47 +0200
allow host lists to contain host lists
i. e.
pass from { a, b, { c, d } e f }
Index: parse.y
===================================================================
RCS file: /cvs/src/sbin/pfctl/parse.y,v
retrieving revision 1.495
diff -u -p -r1.495 parse.y
--- parse.y 14 Mar 2006 11:09:43 -0000 1.495
+++ parse.y 4 Apr 2006 15:31:13 -0000
@@ -2214,8 +2214,8 @@ ipspec : ANY { $$ = NULL; }
| '{' host_list '}' { $$ = $2; }
;
-host_list : xhost { $$ = $1; }
- | host_list comma xhost {
+host_list : ipspec { $$ = $1; }
+ | host_list comma ipspec {
if ($3 == NULL)
$$ = $1;
else if ($1 == NULL)
Visit your host, monkey.org