From: Roy Marples Date: Thu, 6 Jun 2013 12:38:14 +0000 (+0000) Subject: Don't error if the interface goes away. X-Git-Tag: v6.0.0~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91b57dee9298697069a16cb42cf7c99165fc622e;p=thirdparty%2Fdhcpcd.git Don't error if the interface goes away. --- diff --git a/dhcp6.c b/dhcp6.c index d44e227f..d50092b9 100644 --- a/dhcp6.c +++ b/dhcp6.c @@ -688,7 +688,7 @@ dhcp6_freedrop_addrs(struct interface *ifp, int drop) syslog(LOG_INFO, "%s: deleting address %s", ap->iface->name, ap->saddr); if (del_address6(ap) == -1 && - errno != EADDRNOTAVAIL) + errno != EADDRNOTAVAIL && errno != ENXIO) syslog(LOG_ERR, "del_address6 %m"); } free(ap); diff --git a/ipv6ns.c b/ipv6ns.c index 5ffcc682..a8ec63d4 100644 --- a/ipv6ns.c +++ b/ipv6ns.c @@ -394,7 +394,7 @@ ipv6ns_probeaddrs(struct ipv6_addrhead *addrs) i++; } if (del_address6(ap) == -1 && - errno != EADDRNOTAVAIL) + errno != EADDRNOTAVAIL && errno != ENXIO) syslog(LOG_ERR, "del_address6 %m"); if (ap->dadcallback) eloop_q_timeout_delete(0, NULL, diff --git a/ipv6rs.c b/ipv6rs.c index ff02d5a5..3130297f 100644 --- a/ipv6rs.c +++ b/ipv6rs.c @@ -325,7 +325,7 @@ ipv6rs_freedrop_addrs(struct ra *rap, int drop) syslog(LOG_INFO, "%s: deleting address %s", rap->iface->name, ap->saddr); if (del_address6(ap) == -1 && - errno != EADDRNOTAVAIL) + errno != EADDRNOTAVAIL && errno != ENXIO) syslog(LOG_ERR, "del_address6 %m"); } free(ap);