From nobody Wed Jan 14 11:32:11 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4drkVT2khDz6PWV3 for ; Wed, 14 Jan 2026 11:32:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4drkVT1X34z3lv1 for ; Wed, 14 Jan 2026 11:32:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768390337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nJ2IHNNbYOYj6jV25pUk4qn51z3Zv78TiB7/FGeEwjU=; b=v9u5nm3AR0JgYX8HvfqKP5D4G3CP/DD8LduZJclGa1lF8NnWPyO81wY+1btnLNSPXcu9Bv MqBwtkRCvR1avAX5VBuIsKpuZ9ZYk1WZ5C8K0IGwNnh/hYkPLH6vhlpf3bERYeMQgXTqPg LIPch+NU6f2q5aoJpsUsiaXv1k/+JBr4Aa+4bnKpZT1CxmhMRb/ILUomrDsIp9RkiRzMo/ smCDHErC7ih+u3ZXsKDibk2nhAzGJCpJxedC1ib/ZFebyDbNIMsR40Gcu32bq/BSybXwy3 mA/OOKOLUytMnV0ws+0VpwdrJ3g/BqpM1A2YbziDTDi6CUhyxHnP1Qpcwyy/ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1768390337; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=nJ2IHNNbYOYj6jV25pUk4qn51z3Zv78TiB7/FGeEwjU=; b=hee5gDzbJZcAn0APyA47bVMmUoVQfzJ16plAV+njgaZOifTgO2n4efPtzOuhScox4lzBrQ 8h4BHiM40AWYEyRu170w5r2IkEo6c6Ds1vEjQcrUdDQhvdlsy+Z6L0tA5uLzIGd/Dd1eVl WIWJdpBh9/1D0nG9Akak+70ZF15FjCGuiz8WU9lNpgYZXj0ubAwxfrmBfVgaHAKmReMaZ+ MhxxvA1nlgCnDQqfhuSYVEr8cFVrG8+8xblCWQmtv8ZVTU97GZijFI0uatrVhkoStEbGiC CwmIJUc4hGMf1b+IuB8q4FrNSvWCIWMvbNQEDX5ka1Hq/V+UizMvIahiLnjpDg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1768390337; a=rsa-sha256; cv=none; b=V49z4YEIfgE/M9jl6BG1OaRZWeu3w17C+8QGkh3IDBhC0wc6nyc83h9Bp5Y9yp/bYtbBFC SeZ+vTW9xObppZvC0hErnUvdw+PRvGIPa8Yax5+FYWfT990IRWgDzWz+ntwXuM5L3fAc6F RdyJlzmmJvYa/xXoLUOLIte36tw43rqjgSND/46KiHacIB0r3JMJt1vJoUBJBW5JJfOd39 0XFWYqbP1pDGk2ZpJ4mavssqMpGswrqu5pJ1lt6Z0H+MZF4SwxTA5Chha8hLv5pdp9Zooi rt1hZp4I5ei13oH8gNFvvOVxe+qdsWE4kPdl20D2UKpSshEcIWUytbSJ6VArBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4drkVS2gCTzwPR for ; Wed, 14 Jan 2026 11:32:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39619 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 14 Jan 2026 11:32:11 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: fc353e5e61fa - main - pfctl: allow new page character (^L) in pf.conf List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fc353e5e61fadd6ef618948f417f96381c08239c Auto-Submitted: auto-generated Date: Wed, 14 Jan 2026 11:32:11 +0000 Message-Id: <69677ebb.39619.67d9b210@gitrepo.freebsd.org> The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=fc353e5e61fadd6ef618948f417f96381c08239c commit fc353e5e61fadd6ef618948f417f96381c08239c Author: Kristof Provost AuthorDate: 2026-01-14 06:18:27 +0000 Commit: Kristof Provost CommitDate: 2026-01-14 11:31:58 +0000 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 Submitted by: Simon Wollwage Sponsored by: Rubicon Communications, LLC ("Netgate") --- sbin/pfctl/parse.y | 2 +- sbin/pfctl/tests/files/pf1078.in | 3 +++ sbin/pfctl/tests/files/pf1078.ok | 2 ++ sbin/pfctl/tests/pfctl_test_list.inc | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 67e0d30890a8..72589f309f54 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -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; diff --git a/sbin/pfctl/tests/files/pf1078.in b/sbin/pfctl/tests/files/pf1078.in new file mode 100644 index 000000000000..11ce16d5fdc9 --- /dev/null +++ b/sbin/pfctl/tests/files/pf1078.in @@ -0,0 +1,3 @@ +pass in proto tcp + +pass in proto udp diff --git a/sbin/pfctl/tests/files/pf1078.ok b/sbin/pfctl/tests/files/pf1078.ok new file mode 100644 index 000000000000..585236af942a --- /dev/null +++ b/sbin/pfctl/tests/files/pf1078.ok @@ -0,0 +1,2 @@ +pass in proto tcp all flags S/SA keep state +pass in proto udp all keep state diff --git a/sbin/pfctl/tests/pfctl_test_list.inc b/sbin/pfctl/tests/pfctl_test_list.inc index a7328a860dda..ff51af7562d1 100644 --- a/sbin/pfctl/tests/pfctl_test_list.inc +++ b/sbin/pfctl/tests/pfctl_test_list.inc @@ -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")