[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

small pfctl gem I had in my trees for ages



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