From: Roy Marples Date: Tue, 29 Jan 2008 11:12:59 +0000 (+0000) Subject: Re add the code to re-send message now - last time sent >= TIMOUT_MINI just incase. X-Git-Tag: v3.2.3~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1c8a6816bc3a2fcad3a77089047238a2d879c7c;p=thirdparty%2Fdhcpcd.git Re add the code to re-send message now - last time sent >= TIMOUT_MINI just incase. --- diff --git a/client.c b/client.c index 6b0c22fe..5d82cc73 100644 --- a/client.c +++ b/client.c @@ -450,10 +450,16 @@ static int wait_for_packet (fd_set *rset, state_t *state, return (retval); } + /* Resend our message if we're getting loads of packets. + * As we use BPF or LPF, we shouldn't hit this as much, but it's + * still nice to have. */ + if (iface->fd > -1 && uptime () - state->last_sent >= TIMEOUT_MINI) + _send_message (state, state->last_type, options); + logger (LOG_DEBUG, "waiting on select for %ld seconds", (unsigned long) state->timeout); /* If we're waiting for a reply, then we re-send the last - DHCP request periodically in-case of a bad line */ + * DHCP request periodically in-case of a bad line */ retval = 0; while (state->timeout > 0 && retval == 0) { if (iface->fd == -1)