Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2025 18:02:52 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 16c25f9861db - main - pfctl: allow include in inline anchors
Message-ID:  <202504161802.53GI2qhe075745@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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	: '{'



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202504161802.53GI2qhe075745>