]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Don't error about deleting addresses on departed interfaces.
authorRoy Marples <roy@marples.name>
Fri, 17 Oct 2014 19:37:14 +0000 (19:37 +0000)
committerRoy Marples <roy@marples.name>
Fri, 17 Oct 2014 19:37:14 +0000 (19:37 +0000)
ipv6.c

diff --git a/ipv6.c b/ipv6.c
index a7cb3fe279754b9fbbda8e1323f023d3166a675d..dc39124f5fe590e54d88fc3277c23fa9bc18bdb4 100644 (file)
--- a/ipv6.c
+++ b/ipv6.c
@@ -590,7 +590,7 @@ ipv6_deleteaddr(struct ipv6_addr *addr)
        syslog(LOG_INFO, "%s: deleting address %s",
            addr->iface->name, addr->saddr);
        if (if_deladdress6(addr) == -1 &&
-           errno != EADDRNOTAVAIL && errno != ENXIO)
+           errno != EADDRNOTAVAIL && errno != ENXIO && errno != ENODEV)
                syslog(LOG_ERR, "if_deladdress6: :%m");
 
        state = IPV6_STATE(addr->iface);