git: 16c25f9861db - main - pfctl: allow include in inline anchors
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 16 Apr 2025 18:02:52 UTC
The branch main has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=16c25f9861db453ffa07a0891f8d247c744297b0
commit 16c25f9861db453ffa07a0891f8d247c744297b0
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-04-15 15:41:37 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-04-16 14:23:48 +0000
pfctl: 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
Obtained from: OpenBSD, henning <henning@openbsd.org>, bf5a50acaa
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sbin/pfctl/parse.y | 1 +
1 file changed, 1 insertion(+)
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y
index 6b85c1b36303..804d80b04152 100644
--- a/sbin/pfctl/parse.y
+++ b/sbin/pfctl/parse.y
@@ -910,6 +910,7 @@ pfa_anchorlist : /* empty */
| pfa_anchorlist '\n'
| pfa_anchorlist pfrule '\n'
| pfa_anchorlist anchorrule '\n'
+ | pfa_anchorlist include '\n'
;
pfa_anchor : '{'