]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Clear the our DAD flag when deleting an address.
authorRoy Marples <roy@marples.name>
Fri, 17 Oct 2014 13:44:16 +0000 (13:44 +0000)
committerRoy Marples <roy@marples.name>
Fri, 17 Oct 2014 13:44:16 +0000 (13:44 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index 29ffda96198925eef601952667eb1fa2dfa3fe37..a7cb3fe279754b9fbbda8e1323f023d3166a675d 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -737,7 +737,8 @@ ipv6_addaddrs(struct ipv6_addrhead *addrs)
                                if (if_deladdress6(apf) == -1 &&
                                    errno != EADDRNOTAVAIL && errno != ENXIO)
                                        syslog(LOG_ERR, "if_deladdress6: %m");
-                               apf->flags &= ~IPV6_AF_ADDED;
+                               apf->flags &=
+                                   ~(IPV6_AF_ADDED | IPV6_AF_DADCOMPLETED);
                        } else if (apf)
                                apf->flags &= ~IPV6_AF_ADDED;
                        if (ap->flags & IPV6_AF_NEW)