]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev/net: fix assignment of ID_NET_NAME=
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 Mar 2025 22:25:28 +0000 (07:25 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Mar 2025 16:48:33 +0000 (01:48 +0900)
commitb15053de8934ab0803ead56f9483b6950a3fe0f0
tree4cfe00ea1f02e493e0fb282c12ff143ccf119298
parentb3157fc91262b6b9ed07556a3da1d40396f53fe9
udev/net: fix assignment of ID_NET_NAME=

E.g. sd_device object of network interface 'hoge!foo' has sysname 'hoge/foo'.
So, previously udevd assigned 'hoge/foo' rather than 'hoge!foo' to ID_NET_NAME,
hence even when renaming is not requested, such interface was renamed to 'hoge_foo'
(note '/' cannot be used in network interface name, hence escaped to underbar).
man/systemd.net-naming-scheme.xml
src/shared/netif-naming-scheme.c
src/shared/netif-naming-scheme.h
src/udev/net/link-config.c
src/udev/udev-builtin-net_setup_link.c
test/units/TEST-17-UDEV.netif-INTERFACE-property.sh [new file with mode: 0755]