]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: keep dynamic configurations as possible as we can on reconfigure
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 5 Nov 2024 02:39:31 +0000 (11:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 5 Nov 2024 17:05:00 +0000 (02:05 +0900)
commit451c2baf30f50b95d73e648058c7c2348dbf0c31
tree38ddc600818d9f98d876d2c61db88523d008b661
parentdd6d53a8dc58c5e6e310b09ba7f7a22600a87ba9
network: keep dynamic configurations as possible as we can on reconfigure

E.g. when a .network file is updated, but DHCP setting is unchanged, it
is not necessary to drop acquired DHCP lease.
So, let's not stop DHCP client and friends in link_reconfigure_impl(),
but stop them later when we know they are not necessary anymore.

Still DHCP clients and friends are stopped and leases are dropped when
the explicit reconfiguration is requested
14 files changed:
src/network/networkd-dhcp-prefix-delegation.c
src/network/networkd-dhcp-prefix-delegation.h
src/network/networkd-dhcp4.c
src/network/networkd-dhcp4.h
src/network/networkd-dhcp6.c
src/network/networkd-dhcp6.h
src/network/networkd-ipv4ll.c
src/network/networkd-ipv4ll.h
src/network/networkd-link.c
src/network/networkd-ndisc.c
src/network/networkd-ndisc.h
src/network/networkd-radv.c
src/network/networkd-radv.h
test/test-network/systemd-networkd-tests.py