Bug 86635 - pfctl(8): allow new page character (^L) in pf.conf
Summary: pfctl(8): allow new page character (^L) in pf.conf
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 16.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: Kristof Provost
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-27 15:30 UTC by MOROHOSHI Akihiko
Modified: 2026-07-18 09:24 UTC (History)
4 users (show)

See Also:
rootnode+freebsd: mfc-stable15?
rootnode+freebsd: mfc-stable14?


Attachments
file.diff (301 bytes, patch)
2005-09-27 15:30 UTC, MOROHOSHI Akihiko
no flags Details | Diff
parse.y.diff (284 bytes, patch)
2025-03-22 14:52 UTC, Mark Linimon
no flags Details | Diff
parse.y.diff (354 bytes, patch)
2026-01-14 03:14 UTC, Simon Wollwage
rootnode+freebsd: maintainer-approval? (kp)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MOROHOSHI Akihiko 2005-09-27 15:30:17 UTC
PF configuration file 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.
Attached patch allow new page character in pf.conf.
Comment 1 Bruce Cran freebsd_committer freebsd_triage 2009-03-25 17:22:07 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-pf

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:01:39 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 devnull freebsd_committer freebsd_triage 2022-10-17 12:39:46 UTC
Keyword: 

    patch
or  patch-ready

– in lieu of summary line prefix: 

    [patch]

* bulk change for the keyword
* summary lines may be edited manually (not in bulk). 

Keyword descriptions and search interface: 

    <https://bugs.freebsd.org/bugzilla/describekeywords.cgi>
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2025-03-22 14:52:24 UTC
Created attachment 258918 [details]
parse.y.diff

^Triage: rebase patch.
Comment 5 Simon Wollwage freebsd_triage 2026-01-14 03:14:28 UTC
Created attachment 267129 [details]
parse.y.diff

^Triage: rebase patch.

If this is committed, we should maybe also try to upstream it to OpenBSD, so that we can avoid further divergence of config files.
Comment 6 commit-hook freebsd_committer freebsd_triage 2026-01-14 11:33:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=fc353e5e61fadd6ef618948f417f96381c08239c

commit fc353e5e61fadd6ef618948f417f96381c08239c
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2026-01-14 06:18:27 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
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 <moro@remus.dti.ne.jp>
    Submitted by:   Simon Wollwage <rootnode+freebsd@wollwage.com>
    Sponsored by:   Rubicon Communications, LLC ("Netgate")

 sbin/pfctl/parse.y                     | 2 +-
 sbin/pfctl/tests/files/pf1078.in (new) | 3 +++
 sbin/pfctl/tests/files/pf1078.ok (new) | 2 ++
 sbin/pfctl/tests/pfctl_test_list.inc   | 1 +
 4 files changed, 7 insertions(+), 1 deletion(-)
Comment 7 commit-hook freebsd_committer freebsd_triage 2026-01-28 19:20:59 UTC
A commit in branch stable/14 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=d2d25d8fde2e19fb880c913dcc53871ef0588b55

commit d2d25d8fde2e19fb880c913dcc53871ef0588b55
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2026-01-14 06:18:27 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
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 <moro@remus.dti.ne.jp>
    Submitted by:   Simon Wollwage <rootnode+freebsd@wollwage.com>
    Sponsored by:   Rubicon Communications, LLC ("Netgate")

    (cherry picked from commit fc353e5e61fadd6ef618948f417f96381c08239c)

 sbin/pfctl/parse.y                     | 2 +-
 sbin/pfctl/tests/files/pf1078.in (new) | 3 +++
 sbin/pfctl/tests/files/pf1078.ok (new) | 2 ++
 sbin/pfctl/tests/pfctl_test_list.inc   | 1 +
 4 files changed, 7 insertions(+), 1 deletion(-)
Comment 8 commit-hook freebsd_committer freebsd_triage 2026-01-28 19:21:04 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=19709a0cd866a6ce8f9b0858b360c584da8cb6ce

commit 19709a0cd866a6ce8f9b0858b360c584da8cb6ce
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2026-01-14 06:18:27 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2026-01-28 09:08:06 +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 <moro@remus.dti.ne.jp>
    Submitted by:   Simon Wollwage <rootnode+freebsd@wollwage.com>
    Sponsored by:   Rubicon Communications, LLC ("Netgate")

    (cherry picked from commit fc353e5e61fadd6ef618948f417f96381c08239c)

 sbin/pfctl/parse.y                     | 2 +-
 sbin/pfctl/tests/files/pf1078.in (new) | 3 +++
 sbin/pfctl/tests/files/pf1078.ok (new) | 2 ++
 sbin/pfctl/tests/pfctl_test_list.inc   | 1 +
 4 files changed, 7 insertions(+), 1 deletion(-)