]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp-client: enter the SELECTING state before sending DHCPDISCOVER
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 13 Mar 2026 05:33:42 +0000 (14:33 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 23 Apr 2026 22:40:07 +0000 (07:40 +0900)
commit0b3cbfd1bc247c7323ba0286b6df8961a68f2fbd
tree9ef428c356bfc5b91d5959fcf25f2f8926ef9caf
parentffafefbcceb8a4afada4cb1172b9057e1a7c56cc
sd-dhcp-client: enter the SELECTING state before sending DHCPDISCOVER

Similarly, enter the REBOOTING state before sending DHCPREQUEST on reboot.

Also, this makes DHCPREQUEST message is sent several times also in REBOOTING
state. Previously, we wait about 4 seconds after DHCPREQUEST on reboot, and
entered the init state if no response. Now we wait 1 second after the first
DHCPREQUEST, resend another DHCPREQUEST, wait 2 seconds, then enter the
init state if no response. So, even in the worst case, we have slight
speed up.
src/libsystemd-network/sd-dhcp-client.c