From nobody Wed Jan 28 19:20:21 2026 X-Original-To: dev-commits-src-branches@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 4f1XDB759Yz6QdS9 for ; Wed, 28 Jan 2026 19:20:26 +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 4f1XDB5Xs9z3pfc for ; Wed, 28 Jan 2026 19:20:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769628026; 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=RwSzJUBl1xoHzqq/SSYq4HWRFIhxBmVzlUGUrASVg6o=; b=uLEmQYoB9kOPS103ndvYQ1h/yoCk1OqiUB5uXfSHtRz5lzH/+LXKmHGacCiy8cO/EKnbcl jmGE5SBesX3cxRWhi9fG6QqVl07hEJ8B02B8Lw0xbzIWs3gUH6JsHAD41fnd489Q2r1Z8E fEPXQi9Fz1u+7VGWzRCdNT0WTklF6HDHVu5Rf7krqmNjA6H4KleW4W8+4qOtWHvTct6Scb Q/EGud8IELNk086liTIoCum1IH5jmokRpSnhT3aR17IkA8VQXWwsQ2Wm0tmHx7zwP50nuZ gFXjaeSzn4dx3hABcjkzPH8QwQtD6vrDY1V40GAY/oaD+okUNFuJ14f4PuVnvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1769628026; 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=RwSzJUBl1xoHzqq/SSYq4HWRFIhxBmVzlUGUrASVg6o=; b=K7MAs54aR2QQrMkPlvyqoYNxDgnFpQm8QlnTHDK5wDPF3MLsKHmaU1DyPGKA3vYlKROFC0 maTMUoy9/NshTkh/8TjU2mWsabWZtxjPo8KJKpUO4+FSVFWMuZWSo+9edB6TA6lFqnuyP5 /1EsBOPLrV7rf5S31u6/GgGcg2CTYY8+yQlPOa4FT4ItWugg6jNH/XqqqolWdtT7J9/xsw T8j1dVabh+58Btih/B/YQfI6SPcBmBoKzhEE8Kn/qaYKempCftkD8kCdjKWCeVCDpg5hPi kkxS+UbhiCc61G9ldAQ9wV61xgjnKlj8oCrscw9J7xMM2t1LW5wPsQVoOP1ygw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1769628026; a=rsa-sha256; cv=none; b=VTQKtioYFojwFMxmkfeXMtyHVm5R2xy2gvjpEEetbGL5z573vCynkHWcQSF99gVdeIEG4T xeQnjwD038DvRCYd/xdnZDmPnUAMWezbyNvXeYverl/LBUj0dC4rdtislendU8jnlgrRjE xsn9PQWA4WXs6/T8udV+tt1yLqCoTYMZog9ALT8dO7wXi1Bwl6+tPdNBpnA3CDQ+a8Az80 mCeAEs5vIEyQTvIV7MkDcb1keREpqmTK1xvL22rSP2Y5IO9IznFd0SCUVHXgU1BaFEanJ8 pBzgsOekv5hhkeb50Zy4xE0bbE3dqVN6CMZS9QMgqF/wr76BIHpB2rGOFjbudQ== 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 4f1XDB4xYbz155v for ; Wed, 28 Jan 2026 19:20:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 22804 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 28 Jan 2026 19:20:21 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: d2d25d8fde2e - stable/14 - pfctl: allow new page character (^L) in pf.conf List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: d2d25d8fde2e19fb880c913dcc53871ef0588b55 Auto-Submitted: auto-generated Date: Wed, 28 Jan 2026 19:20:21 +0000 Message-Id: <697a6175.22804.43abb0c2@gitrepo.freebsd.org> The branch stable/14 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=d2d25d8fde2e19fb880c913dcc53871ef0588b55 commit d2d25d8fde2e19fb880c913dcc53871ef0588b55 Author: Kristof Provost AuthorDate: 2026-01-14 06:18:27 +0000 Commit: Kristof Provost CommitDate: 2026-01-28 09:08:59 +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") (cherry picked from commit fc353e5e61fadd6ef618948f417f96381c08239c) --- 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 ddee0bda8b9a..58245ca642e0 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -6510,7 +6510,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 5d5aa0172530..bb2b5b49496e 100644 --- a/sbin/pfctl/tests/pfctl_test_list.inc +++ b/sbin/pfctl/tests/pfctl_test_list.inc @@ -128,3 +128,4 @@ PFCTL_TEST(1016, "Ethernet rule with ridentifier and one label") PFCTL_TEST(1017, "Ethernet rule with ridentifier and several labels") PFCTL_TEST(1018, "Test dynamic address mask") PFCTL_TEST(1020, "Test hashmark and semicolon comment") +PFCTL_TEST(1078, "New page")