]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: make sec_to_usec() map 0sec -> 0usec
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Oct 2022 03:42:40 +0000 (12:42 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Oct 2022 15:25:14 +0000 (00:25 +0900)
commit0cf1fe88885bd5ae1944c331ee1a5ec80b0ddfbc
treed671541647a38dfd495ae6d88111d046a1d7df24
parent773024685b37170395a11716f8e4ad99d3580455
network: make sec_to_usec() map 0sec -> 0usec

Zero lifetime in RA is special, and we should not assign possibly very
short lifetime addresses or friends.

This should not change anything at least now, preparation for later
commits. Note, DHCPv4 and v6 code also uses it, but sd-dhcp-client and
sd-dhcp6-client already filtered messages with zero lifetime. Hence,
the change should not affect DHCP code.
src/network/networkd-util.h