From: Yu Watanabe Date: Fri, 6 Sep 2019 18:36:19 +0000 (+0900) Subject: ndisc: make first solicit delayed randomly X-Git-Tag: v244-rc1~293^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13494%2Fhead;p=thirdparty%2Fsystemd.git ndisc: make first solicit delayed randomly Closes #13460. --- diff --git a/src/libsystemd-network/sd-ndisc.c b/src/libsystemd-network/sd-ndisc.c index 5e711713d9d..9922203ac4b 100644 --- a/src/libsystemd-network/sd-ndisc.c +++ b/src/libsystemd-network/sd-ndisc.c @@ -365,7 +365,7 @@ _public_ int sd_ndisc_start(sd_ndisc *nd) { r = event_reset_time(nd->event, &nd->timeout_event_source, clock_boottime_or_monotonic(), - 0, 0, + time_now + USEC_PER_SEC / 2, 1 * USEC_PER_SEC, /* See RFC 8415 sec. 18.2.1 */ ndisc_timeout, nd, nd->event_priority, "ndisc-timeout", true); if (r < 0)