]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: make 'networkctl reconfigure' work safely even when KeepConfiguration=dhcp... 35059/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Nov 2024 18:26:39 +0000 (03:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 11 Nov 2024 02:53:24 +0000 (11:53 +0900)
commit82df2e0f0496834064f32e4f09cc32728c1cbddd
tree262b813819d886ffa0c7ec380277237087a8d67a
parente8da735cebb14936c529a46a04635472c9bcbe84
network: make 'networkctl reconfigure' work safely even when KeepConfiguration=dhcp or yes

Previously, even if KeepConfiguration=dhcp or yes is specified in the
new .network file, dynamic configurations like DHCP address and routes
were dropped when 'networkctl reconfigure INTERFACE' is invoked.

If the setting is specified, let's gracefully handle the dynamic
configurations. Then, 'networkctl reconfigure' can be also used for
an interface that has critical connections.
src/network/networkd-dhcp-prefix-delegation.c
src/network/networkd-dhcp4.c
src/network/networkd-dhcp6.c
src/network/networkd-ipv4ll.c
src/network/networkd-link.c
src/network/networkd-ndisc.c
src/network/networkd-radv.c