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:
+1
-1
@@ -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;
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
pass in proto tcp
|
||||
|
||||
pass in proto udp
|
||||
@@ -0,0 +1,2 @@
|
||||
pass in proto tcp all flags S/SA keep state
|
||||
pass in proto udp all keep state
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user