HomeFreeBSD

pfctl: relax interface name requirement

Description

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 '⭐').

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)

Details

Provenance
kpAuthored on May 7 2026, 9:58 AM
Parents
rGe71e7dd6176e: fdescfs: do not change vnode type on VOP_GETATTR()
Branches
Unknown
Tags
Unknown