]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't wait for DAD to complete for addresses we have not added.
authorRoy Marples <roy@marples.name>
Thu, 9 Oct 2014 20:14:15 +0000 (20:14 +0000)
committerRoy Marples <roy@marples.name>
Thu, 9 Oct 2014 20:14:15 +0000 (20:14 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 8bd5c2b7f7becb4604f3f4699c59b3510c33a79f..a5d3b19feda49623289642d7709a31daca16bc7d 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -2253,6 +2253,8 @@ dhcp6_script_try_run(struct interface *ifp)
        completed = 1;
        /* If all addresses have completed DAD run the script */
        TAILQ_FOREACH(ap, &state->addrs, next) {
+               if (!(ap->flags & IPV6_AF_ADDED))
+                       continue;
                if (ap->flags & IPV6_AF_ONLINK) {
                        if (!(ap->flags & IPV6_AF_DADCOMPLETED) &&
                            ipv6_iffindaddr(ap->iface, &ap->addr))