]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
If a DHCP state is ARP probbed successfully and we're bound then don't do anything.
authorRoy Marples <roy@marples.name>
Mon, 25 Apr 2016 16:23:10 +0000 (16:23 +0000)
committerRoy Marples <roy@marples.name>
Mon, 25 Apr 2016 16:23:10 +0000 (16:23 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 44c70f757be040d7fd0803780cc3773a89a51a2e..8eb42dd1dbd3240e9ff185fa5201a22e866ecb8a 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -1917,6 +1917,10 @@ dhcp_arp_probed(struct arp_state *astate)
                return;
        }
 
+       /* Already bound so DAD has worked */
+       if (state->state == DHS_BOUND)
+               return;
+
        logger(astate->iface->ctx, LOG_DEBUG, "%s: DAD completed for %s",
            astate->iface->name, inet_ntoa(astate->addr));
        if (state->state != DHS_INFORM)