summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-ndisc.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-09-07 03:36:19 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-09-16 05:37:04 +0900
commit9973e6c43abb9d3d73fcfee83c886dbd32e700ca (patch)
treea26ffffcdc09921dd9f86e728467d58274dab90a /src/libsystemd-network/sd-ndisc.c
parentfcb51238e0523d64a698b8738a15bbc1aea9febe (diff)
downloadsystemd-9973e6c43abb9d3d73fcfee83c886dbd32e700ca.tar.gz
ndisc: make first solicit delayed randomly
Closes #13460.
Diffstat (limited to 'src/libsystemd-network/sd-ndisc.c')
-rw-r--r--src/libsystemd-network/sd-ndisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-ndisc.c b/src/libsystemd-network/sd-ndisc.c
index 5e711713d9..9922203ac4 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)