]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: ignore stale interface renames 42545/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Jun 2026 02:02:40 +0000 (11:02 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 13 Jun 2026 11:04:06 +0000 (20:04 +0900)
commit4cf729805942025f5105436f2564f4e31827648a
tree30d9f1fd47b2235beac16b74cfff16ad82ec54e6
parentc96f69e63c041965f77421f631dacb9ec2f7c769
network: ignore stale interface renames

After enumeration, networkd may receive RTM_NEWLINK messages carrying a
stale interface name. This can happen when interface rename notifications
are queued before link enumeration and processed afterwards.

Previously, networkd could become confused by such a message and put the
corresponding Link into the failed state. Avoid this by checking whether
the new interface name is already in use by another interface and ignoring
the rename if so.

Fixes #20203.
src/network/networkd-link.c