From: Yu Watanabe Date: Wed, 12 Mar 2025 19:12:57 +0000 (+0900) Subject: udev: use INTERFACE property rather than sysname when processing network interface... X-Git-Tag: v258-rc1~1101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9ddbc5b35891a283c341b20560e335b256dda5f;p=thirdparty%2Fsystemd.git udev: use INTERFACE property rather than sysname when processing network interface (#36627) sd-device replaces '!' in sysname with '/', hence sysname may be different from ifname. Let's use INTERFACE property when we need network interface name. This fixes the following unexpected renaming of network interfaces created with '!' in their name, e.g. 'hoge!foo' -> 'hoge_foo': ``` $ run0 ip link add 'hoge!foo' type dummy $ ip link show 'hoge!foo' Device "hoge!foo" does not exist. $ ip link show 'hoge_foo' 410: hoge_foo: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether ee:54:4a:dd:c4:c7 brd ff:ff:ff:ff:ff:ff ``` Closes #26156. --- f9ddbc5b35891a283c341b20560e335b256dda5f