pfctl: allow new page character (^L) in pf.conf

PF configuration files can contains many things.

Using the new page characters (i.e. ^L, \014) to mark the beginning
of parts is useful because many editors such as emacs and vim has
facilities to jump next/previous ones.

PR:		86635
MFC after:	2 weeks
Submitted by:	MOROHOSHI Akihiko <moro@remus.dti.ne.jp>
Submitted by:	Simon Wollwage <rootnode+freebsd@wollwage.com>
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Kristof Provost
2026-01-14 07:18:27 +01:00
parent 3a609881c8
commit fc353e5e61
4 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -7399,7 +7399,7 @@ yylex(void)
top:
p = buf;
while ((c = lgetc(0)) == ' ' || c == '\t')
while ((c = lgetc(0)) == ' ' || c == '\t' || c == '\014')
; /* nothing */
yylval.lineno = file->lineno;
+3
View File
@@ -0,0 +1,3 @@
pass in proto tcp
pass in proto udp
+2
View File
@@ -0,0 +1,2 @@
pass in proto tcp all flags S/SA keep state
pass in proto udp all keep state
+1
View File
@@ -186,3 +186,4 @@ PFCTL_TEST_FAIL(1074, "Filter AF different than route-to AF, without prefer-ipv6
PFCTL_TEST(1075, "One shot rule")
PFCTL_TEST(1076, "State limiter")
PFCTL_TEST(1077, "Source limiter")
PFCTL_TEST(1078, "New page")