diff options
| author | Roy Marples <roy@marples.name> | 2015-06-03 10:34:15 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-06-03 10:34:15 +0000 |
| commit | f572315de673651e8e7e44ec3f5a523b3f667d58 (patch) | |
| tree | 89df5e5ce6a2105def34d7c66022d6be2757e16a /ipv6nd.c | |
| parent | 0b8bf1ba44ac5e3abce8a0529e4b9677a3aedc41 (diff) | |
| download | dhcpcd-f572315de673651e8e7e44ec3f5a523b3f667d58.tar.xz | |
Add an option to skip the initial randomised protocol delay.
Diffstat (limited to 'ipv6nd.c')
| -rw-r--r-- | ipv6nd.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |
