]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp-client: use unaligned_be32_sec_to_usec()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 6 Sep 2023 19:33:05 +0000 (04:33 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 21 Sep 2023 08:52:03 +0000 (09:52 +0100)
commit511d96d3b77555fe3e5adc1a73298fde1cfaf5f5
tree45a3bc6b17aa3aed96335c31f27676d72b26dfd9
parentca831de1704f4e28241df513aa89ac465a7c8ab2
sd-dhcp-client: use unaligned_be32_sec_to_usec()

Note, previously, we set 1 second if the time value is zero.
But the adjustment is dropped now, as for the lifetime we have explicit
check that the message has non-zero lifetime, and for T1 and T2 we have
better adjustment in client_set_lease_timeouts().
src/libsystemd-network/sd-dhcp-lease.c