Mercurial > hg > dhcpcd
changeset 2470:f8409fb98913 draft
Fix compile.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Sat, 03 May 2014 21:18:20 +0000 |
| parents | 5fc737832999 |
| children | 4b8bdeacc5a2 |
| files | ipv6nd.c |
| diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ipv6nd.c Sat May 03 19:56:15 2014 +0000 +++ b/ipv6nd.c Sat May 03 21:18:20 2014 +0000 @@ -1494,12 +1494,11 @@ icp->icmp6_type, icp->icmp6_code, ctx->sfrom); } -static int +static void ipv6nd_startrs1(void *arg) { struct interface *ifp = arg; struct rs_state *state; - struct timeval tv; syslog(LOG_INFO, "%s: soliciting an IPv6 router", ifp->name); if (ipv6nd_open(ifp->ctx) == -1) { @@ -1507,8 +1506,6 @@ return; } - eloop_timeout_delete(ifp->ctx->eloop, NULL, ifp); - state = RS_STATE(ifp); if (state == NULL) { ifp->if_data[IF_DATA_IPV6ND] = calloc(1, sizeof(*state)); @@ -1536,6 +1533,7 @@ { struct timeval tv; + eloop_timeout_delete(ifp->ctx->eloop, NULL, ifp); tv.tv_sec = 0; tv.tv_usec = (suseconds_t)(arc4random() % (MAX_RTR_SOLICITATION_DELAY * 1000000));
