aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--ndp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ndp.c b/ndp.c
index 1752d64..37bf7a3 100644
--- a/ndp.c
+++ b/ndp.c
@@ -420,9 +420,13 @@ void ndp_timer(const struct ctx *c, const struct timespec *now)
interval = min_rtr_adv_interval +
random() % (max_rtr_adv_interval - min_rtr_adv_interval);
+ if (!next_ra)
+ goto first;
+
info("NDP: sending unsolicited RA, next in %llds", (long long)interval);
ndp_ra(c, &in6addr_ll_all_nodes);
+first:
next_ra = now->tv_sec + interval;
}