mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 23:50:42 +00:00
network: use monotonic instead of boot time to handle address creation/update timestamp
Follow-up for25db3aeaf3and899034ba81. Fixes another issue in #20244.
This commit is contained in:
committed by
Lennart Poettering
parent
bd73806888
commit
5865dc1493
@@ -765,7 +765,9 @@ static int ndisc_router_process_autonomous_prefix(Link *link, sd_ndisc_router *r
|
||||
assert(link);
|
||||
assert(rt);
|
||||
|
||||
r = sd_ndisc_router_get_timestamp(rt, clock_boottime_or_monotonic(), &time_now);
|
||||
/* Do not use clock_boottime_or_monotonic() here, as the kernel internally manages cstamp and
|
||||
* tstamp with jiffies, and it is not increased while the system is suspended. */
|
||||
r = sd_ndisc_router_get_timestamp(rt, CLOCK_MONOTONIC, &time_now);
|
||||
if (r < 0)
|
||||
return log_link_error_errno(link, r, "Failed to get RA timestamp: %m");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user