From: Roy Marples Date: Mon, 28 Jan 2008 14:17:46 +0000 (+0000) Subject: We shouldn't need to re-send this message now as our timeout and signal interupt... X-Git-Tag: v3.2.3~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ca735d85fdb60f400709296c78e99a569aca96a;p=thirdparty%2Fdhcpcd.git We shouldn't need to re-send this message now as our timeout and signal interupt code is a lot more robust plus we now use LPF. We can always add it back if we need to. --- diff --git a/client.c b/client.c index f447d9a1..9b298ef5 100644 --- a/client.c +++ b/client.c @@ -442,19 +442,14 @@ static int wait_for_packet (fd_set *rset, state_t *state, retval = select (maxfd + 1, rset, NULL, NULL, &tv); if (retval == 0) - _send_message (state, state->last_type, options); + _send_message (state, state->last_type, + options); } } return (retval); } - /* Resend our message if we're getting loads of packets - that aren't for us. This mainly happens on Linux as it - doesn't have a nice BPF filter. */ - 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