]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/netdev: also check ifindex, iftype, and kind when assigning NetDev to Link
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Sep 2024 15:12:41 +0000 (00:12 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 10 Sep 2024 07:38:06 +0000 (16:38 +0900)
commit1788c3462853e8bb955ff656007e20f402dd9af2
treefbbf5b82cba1377dfc45b66f538a92f565eb868b
parentf2129f1d8c1a92f4ca98bfc06795d9cb5ed0acd2
network/netdev: also check ifindex, iftype, and kind when assigning NetDev to Link

Even when a NetDev object with the same name found, its iftype or kind
may be different. For safety, let's also check them.
src/network/netdev/netdev.c
src/network/netdev/netdev.h
src/network/networkd-link.c