]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Set the renew->rebind timer.
authorRoy Marples <roy@marples.name>
Wed, 9 Jul 2008 21:17:19 +0000 (21:17 +0000)
committerRoy Marples <roy@marples.name>
Wed, 9 Jul 2008 21:17:19 +0000 (21:17 +0000)
client.c

index 7c74d80ebe64a0ed5e3bdf7d8bf07fe141ac41d0..c6762dd321c0c3f24bc815d27a7c43e295a4e2bc 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1134,6 +1134,8 @@ handle_timeout(struct if_state *state, const struct options *options)
                }
                logger(LOG_INFO, "renewing lease of %s",inet_ntoa(lease->addr));
                state->state = STATE_RENEWING;
+               tv.tv_sec = lease->rebindtime - lease->renewaltime;
+               timeradd(&state->start, &tv, &state->stop);
                break;
        }