]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/address: acquire address from DHCP server lease file
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 12 Mar 2024 09:21:38 +0000 (18:21 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 18 Mar 2024 13:33:14 +0000 (22:33 +0900)
commit7a89aeb1385bcae2b8d78c23558993351b08a6ce
tree65adc26844e0e56a0f72091eba707d2492afe5ff
parent88123aa21c2611049d01174ccbc662dfac26d9bb
network/address: acquire address from DHCP server lease file

If the DHCP server on an interface is configured with its server
address is null, then let's reuse the previous server address if
possible.

Otherwise, if networkd is restarted or the host is rebooted, then
possibly new subnet is picked, and clients that already have addresses
in the previous subnet cannot access the server.

Prompted by https://github.com/systemd/systemd/pull/30021#discussion_r1518478633.
src/network/networkd-address.c
src/network/networkd-address.h
src/network/networkd-dhcp-server.c
src/network/networkd-dhcp-server.h