]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We shouldn't need to re-send this message now as our timeout and signal interupt...
authorRoy Marples <roy@marples.name>
Mon, 28 Jan 2008 14:17:46 +0000 (14:17 +0000)
committerRoy Marples <roy@marples.name>
Mon, 28 Jan 2008 14:17:46 +0000 (14:17 +0000)
client.c

index f447d9a140af6a8cd5417bfb998194b93dc7ece4..9b298ef5e6a9246f6cbf10e074df1fca34657894 100644 (file)
--- 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