]> git.ipfire.org Git - thirdparty/systemd.git/commit
dhcp-server-request: rework when we should reply DHCPNAK
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 10 May 2026 15:26:33 +0000 (00:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 22 May 2026 06:57:06 +0000 (15:57 +0900)
commite294a8eada9e3cfaf420e0b6c0ab68a0af4aff2e
treed14ea67816ba6fd33613746696bd74a403f39d58
parent94b39d22ddba59c4b6ba2366b1d4f472e9497acb
dhcp-server-request: rework when we should reply DHCPNAK

Previously, DHCPNAK was sent only when the client is in INIT-REBOOT
state. But, on selecting or renewing, the request is directed to a
specific server, so we can safely reply with DHCPNAK.

Also, verify existing bound lease even when there is no static lease for
the client.
src/libsystemd-network/dhcp-server-request.c
src/libsystemd-network/test-dhcp-server.c