From 34252d60db0089e3b06b7fec7469437c602abf6a Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 9 Oct 2014 20:14:15 +0000 Subject: [PATCH] Don't wait for DAD to complete for addresses we have not added. --- dhcp6.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dhcp6.c b/dhcp6.c index 8bd5c2b7..a5d3b19f 100644 --- 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)) -- 2.47.3