summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-dhcp6.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-03-28 16:41:10 +0200
committerLennart Poettering <lennart@poettering.net>2022-03-28 16:55:41 +0200
commitba4e0427e955a648e24f6506d0cb92857c84b85d (patch)
tree78d563c6d8b36fab7b7d53997d5a27f55cad10d6 /src/network/networkd-dhcp6.c
parentnetwork: rename netdev kind virtual-wlan -> wlan (diff)
downloadsystemd-ba4e0427e955a648e24f6506d0cb92857c84b85d.tar.xz
systemd-ba4e0427e955a648e24f6506d0cb92857c84b85d.zip
time-util: assume CLOCK_BOOTTIME always exists
Let's raise our supported baseline a bit: CLOCK_BOOTTIME started to work with timerfd in kernel 3.15 (i.e. back in 2014), let's require support for it now. This will raise our baseline only modestly from 3.13 → 3.15.
Diffstat (limited to 'src/network/networkd-dhcp6.c')
-rw-r--r--src/network/networkd-dhcp6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-dhcp6.c b/src/network/networkd-dhcp6.c
index c443098889..d4b61ad79e 100644
--- a/src/network/networkd-dhcp6.c
+++ b/src/network/networkd-dhcp6.c
@@ -258,7 +258,7 @@ static int dhcp6_address_acquired(Link *link) {
if (r < 0)
return log_link_warning_errno(link, r, "Failed to get server address of DHCPv6 lease: %m");
- r = sd_dhcp6_lease_get_timestamp(link->dhcp6_lease, clock_boottime_or_monotonic(), &timestamp_usec);
+ r = sd_dhcp6_lease_get_timestamp(link->dhcp6_lease, CLOCK_BOOTTIME, &timestamp_usec);
if (r < 0)
return log_link_warning_errno(link, r, "Failed to get timestamp of DHCPv6 lease: %m");