summaryrefslogtreecommitdiffstats
path: root/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2015-06-03 10:34:15 +0000
committerRoy Marples <roy@marples.name>2015-06-03 10:34:15 +0000
commitf572315de673651e8e7e44ec3f5a523b3f667d58 (patch)
tree89df5e5ce6a2105def34d7c66022d6be2757e16a /ipv6nd.c
parent0b8bf1ba44ac5e3abce8a0529e4b9677a3aedc41 (diff)
downloaddhcpcd-f572315de673651e8e7e44ec3f5a523b3f667d58.tar.xz
Add an option to skip the initial randomised protocol delay.
Diffstat (limited to 'ipv6nd.c')
-rw-r--r--ipv6nd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ipv6nd.c b/ipv6nd.c
index e8e981b6..eebf8679 100644
--- a/ipv6nd.c
+++ b/ipv6nd.c
@@ -1697,6 +1697,11 @@ ipv6nd_startrs(struct interface *ifp)
struct timespec tv;
eloop_timeout_delete(ifp->ctx->eloop, NULL, ifp);
+ if (!(ifp->options->options & DHCPCD_INITIAL_DELAY)) {
+ ipv6nd_startrs1(ifp);
+ return;
+ }
+
tv.tv_sec = 0;
tv.tv_nsec = (suseconds_t)arc4random_uniform(
MAX_RTR_SOLICITATION_DELAY * NSEC_PER_SEC);