ndisc: make first solicit delayed randomly

Closes #13460.
This commit is contained in:
Yu Watanabe
2019-09-07 03:36:19 +09:00
parent fcb51238e0
commit 9973e6c43a

View File

@@ -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)