diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2016-06-16 15:46:21 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2016-06-16 15:46:21 +0000 |
commit | 557848614c8c93d914863cfb8f95cbc59f69f7e7 (patch) | |
tree | fc8388c3c836c6941ce1108a3c5b82b0c8f1edd3 | |
parent | e8a2135c4ce61af1e221c6621ed7052361504864 (diff) |
allow include in inline anchors
with this,
anchor foo {
include "/path/to/rules"
}
works and "load anchor" is obsolete, to be removed somewhen later after
release.
co-production with reky at bsdcan, ok reyk mikeb benno sasha
-rw-r--r-- | sbin/pfctl/parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index d3b4340975d..934438cbe6b 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.649 2015/09/01 19:12:25 sashan Exp $ */ +/* $OpenBSD: parse.y,v 1.650 2016/06/16 15:46:20 henning Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -729,6 +729,7 @@ pfa_anchorlist : /* empty */ | pfa_anchorlist '\n' | pfa_anchorlist pfrule '\n' | pfa_anchorlist anchorrule '\n' + | pfa_anchorlist include '\n' ; pfa_anchor : '{' |