allow lists as filter addresses. trunk
authorchristos <christos@NetBSD.org>
Tue, 24 Mar 2015 20:24:17 +0000
branchtrunk
changeset 234109 621f5c7eb0ab
parent 234108 a852086be0df
child 234110 efaf60b95e99
allow lists as filter addresses.
usr.sbin/npf/npfctl/npf_parse.y
--- a/usr.sbin/npf/npfctl/npf_parse.y	Tue Mar 24 20:02:18 2015 +0000
+++ b/usr.sbin/npf/npfctl/npf_parse.y	Tue Mar 24 20:24:17 2015 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: npf_parse.y,v 1.37 2015/01/04 18:30:05 joerg Exp $	*/
+/*	$NetBSD: npf_parse.y,v 1.38 2015/03/24 20:24:17 christos Exp $	*/
 
 /*-
  * Copyright (c) 2011-2014 The NetBSD Foundation, Inc.
@@ -618,7 +618,8 @@
 	;
 
 filt_addr
-	: addr_or_ifaddr	{ $$ = $1; }
+	: list			{ $$ = $1; }
+	| addr_or_ifaddr	{ $$ = $1; }
 	| TABLE_ID		{ $$ = npfctl_parse_table_id($1); }
 	| ANY			{ $$ = NULL; }
 	;