From: Roy Marples Date: Wed, 7 Nov 2007 10:50:39 +0000 (+0000) Subject: We should reset the NAK backoff when we timeout as well X-Git-Tag: v3.2.3~165 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc663ad224b37bc4b65ba88b5892f8a102ce3b69;p=thirdparty%2Fdhcpcd.git We should reset the NAK backoff when we timeout as well --- diff --git a/client.c b/client.c index 8d7b898f..611d79d7 100644 --- a/client.c +++ b/client.c @@ -498,6 +498,10 @@ int dhcp_run (const options_t *options, int *pidfd) } } else if (retval == 0) { /* timed out */ + + /* No NAK, so reset the backoff */ + nakoff = 1; + switch (state) { case STATE_INIT: if (xid != 0) {