]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/link: update state file when master ifindex is changed
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 27 May 2025 17:09:52 +0000 (02:09 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 27 May 2025 19:38:56 +0000 (04:38 +0900)
commit7dde00ca57cf20a5d71e580d0bc6173f454095e5
treed655e0d1be42eedc751087d3b7bbdfd80fff5aab
parentf44b20b7b6c6b0a089a3ec2392ac85e4772e0357
network/link: update state file when master ifindex is changed

If master ifindex is non-zero, then the carrier state and operational
state of the interface may be the enslaved state.
As the operational state is saved in link state file, and read by
wait-online, we need to update the state file when the master ifindex is
changed.
src/network/networkd-link.c