chiark / gitweb /
libsystemd-network: use CLOCK_BOOTTIME instead of CLOCK_MONOTONIC where possible
authorTom Gundersen <teg@jklm.no>
Thu, 24 Jul 2014 16:53:01 +0000 (18:53 +0200)
committerTom Gundersen <teg@jklm.no>
Thu, 24 Jul 2014 17:02:58 +0000 (19:02 +0200)
commitfa94c34b083b5b4019975624453e53d0cbad2a5d
tree8bd0d0486f7b9f3b0c36e9075bc3999ec7b28c09
parent77ff2de999b7ea6b1b4a3a218fbd9d62bb07cd54
libsystemd-network: use CLOCK_BOOTTIME instead of CLOCK_MONOTONIC where possible

The timeouts in the networking library (DHCP lease timeouts and similar) should not be affected
by suspend. In the cases where CLOCK_BOOTTIME is not implemented, it is still safe to fallback to
CLOCK_MONOTONIC, as the consumers of the library (i.e., networkd) _should_ renew the leases when
coming out of suspend.
src/libsystemd-network/sd-dhcp-client.c
src/libsystemd-network/sd-dhcp-server.c
src/libsystemd-network/sd-dhcp6-client.c
src/libsystemd-network/sd-icmp6-nd.c
src/libsystemd-network/sd-ipv4ll.c
src/libsystemd-network/test-dhcp-client.c
src/libsystemd-network/test-dhcp6-client.c
src/libsystemd-network/test-icmp6-rs.c