Netdev List
 help / color / mirror / Atom feed
* [PATCH 0/1] lib: Align naming rules with the kernel
@ 2025-12-12  4:18 Christoph Anton Mitterer
  2025-12-12  4:18 ` [PATCH 1/1] " Christoph Anton Mitterer
  2025-12-12  5:03 ` [PATCH 0/1] " Stephen Hemminger
  0 siblings, 2 replies; 6+ messages in thread
From: Christoph Anton Mitterer @ 2025-12-12  4:18 UTC (permalink / raw)
  To: netdev

Hey.

Seems the check rules in iproute2 have gotten out of sync with those of the
kernel. This patch brings them up-to-date.

It shall be noted, that these changes would also affect those for alnames (like
before, just without enforcing the maximum length, which AFAIU was the main (or
even whole?) point of altnames[0]).


I made a small test and compiled iproute2 with its `check_altifname()` simply
always returning true.
Turnes out, that the kernel seems to accept any name (i.e. including whitespace
and `/`) and I didn’t find any check functions for altnames in the kernel
either (okay I didn’t look that hard ^^).

Not sure, but maybe altnames should really be allowed to contain anything?
If so, we’d of course need to change this patch.
OTOH, e.g. systemd already assumes that certain characters aren’t allowed in
interface names (see `Name=` in systemd.link(5)) and e.g. `nmcli` uses `:` to
separate fields in its machine readable output.

But then again, the kernel should perhaps check altnames?


Cheers,
Chris.

[0] https://lore.kernel.org/netdev/20190719110029.29466-1-jiri@resnulli.us/


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-12-13  2:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-12  4:18 [PATCH 0/1] lib: Align naming rules with the kernel Christoph Anton Mitterer
2025-12-12  4:18 ` [PATCH 1/1] " Christoph Anton Mitterer
2025-12-12  4:55   ` Stephen Hemminger
2025-12-12  5:32     ` Christoph Anton Mitterer
2025-12-12  5:03 ` [PATCH 0/1] " Stephen Hemminger
     [not found]   ` <28a0486bd08d59f8f2e758f73a39bd442547197f.camel@christoph.anton.mitterer.name>
     [not found]     ` <20251213092004.079f9cbe@stephen-xps.local>
2025-12-13  1:48       ` Christoph Anton Mitterer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox