]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We should only defend when not in the probing or announcing state.
authorRoy Marples <roy@marples.name>
Mon, 21 Jul 2008 05:40:24 +0000 (05:40 +0000)
committerRoy Marples <roy@marples.name>
Mon, 21 Jul 2008 05:40:24 +0000 (05:40 +0000)
client.c

index d08b49b22ffc5e362759a5aa0d32882ac94b3077..6f9a15e04254538251e1a7ecdd3866cf90a7f61f 100644 (file)
--- a/client.c
+++ b/client.c
@@ -1615,7 +1615,10 @@ handle_arp_fail(struct if_state *state, const struct options *options)
        time_t up;
 
        if (IN_LINKLOCAL(htonl(state->fail.s_addr))) {
-               if (state->fail.s_addr == state->interface->addr.s_addr) {
+               if (state->fail.s_addr == state->interface->addr.s_addr &&
+                   state->state != STATE_PROBING &&
+                   state->state != STATE_ANNOUNCING)
+               {
                        up = uptime();
                        if (state->defend + DEFEND_INTERVAL > up) {
                                drop_config(state, "FAIL", options);