aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
diff options
context:
space:
mode:
authorDevin Teske <dteske@FreeBSD.org>2026-09-03 06:17:52 +0000
committerDevin Teske <dteske@FreeBSD.org>2026-09-03 06:17:52 +0000
commit19b0b1f648d8f114f77e82495618587b1729c4cc (patch)
tree6e8662ec56629cde8de271820fef239d276a0cbb /lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp
parent6d49b0c0e7b8b77d8043593356e712307e894743 (diff)
examples/jails: Encode ifnames used as derive_mac countersHEADmain
derive_mac keeps a per-parent branch index in a global named from the parent interface so the N nibble can increment when the same PHY is presented more than once. That name must be a POSIX identifier; a vlan-style parent (em0.20) is not. Encode the ifname first (alnum unchanged, every other byte as _HH) so the lookup stays a symbol-table hit and em0.20 does not collide with em0_20. Same change in jib (9.2) and jng (9.4). In jng, also address netgraph by node name. ngctl(8) treats `.' and `:' as control characters, so ng_ether(4) names its node after the sanitized ifname (vtnet0.20 becomes vtnet0_20). Sanitize the parent ifname where it enters and use that for every ngctl call; ifconfig(8) and derive_mac keep the real name. Previously jng failed outright on such parents where jib did not. PR: 291143 Reported by: Victor <tschetter.victor@gmail.com> MFC after: 1 week Reviewed by: jlduran Differential Revision: https://reviews.freebsd.org/D59326
Diffstat (limited to 'lib/StaticAnalyzer/Core/SimpleConstraintManager.cpp')
0 files changed, 0 insertions, 0 deletions