[Bug 295064] pfctl: rejects weird interface names in dynamic address references
[email protected] Sat, 16 May 2026 16:45:00 +0000
| Newsgroups | gmane.os.freebsd.devel.pf4freebsd |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D295064 --- Comment #4 from [email protected] --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D9d0b771caa49eb77176d8f8cece8d1232= dffe7f2 commit 9d0b771caa49eb77176d8f8cece8d1232dffe7f2 Author: Kristof Provost <[email protected]> AuthorDate: 2026-05-07 09:58:17 +0000 Commit: Kristof Provost <[email protected]> CommitDate: 2026-05-16 16:44:00 +0000 pfctl: relax interface name requirement The FreeBSD network stack, for better or worse, does not impose any requirements on interface names. As such it's valid for an interface name to start with a number (or indeed, be something like '=E2=AD=90'). Allow this in pfctl, and add a test case for the specific case of interface names starting with a number. Note that we don't support UTF-8 names fully, so those may still fail. PR: 295064 MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") (cherry picked from commit 4e7c1ff95a5187faee524055f22c4cf4134d1147) sbin/pfctl/parse.y | 2 +- tests/sys/netpfil/pf/names.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=