]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
BSD: don't log an error if the interface departs during SIOCGIFALIAS
authorRoy Marples <roy@marples.name>
Fri, 8 Feb 2019 17:14:26 +0000 (17:14 +0000)
committerRoy Marples <roy@marples.name>
Fri, 8 Feb 2019 17:15:36 +0000 (17:15 +0000)
src/if-bsd.c

index 0f4cc00815a2d880e539fc6fd68bf7e23f9e3f06..0fe6d200183c74aa74a300a87f0deddf9bfdb7fd 100644 (file)
@@ -1095,7 +1095,7 @@ if_ifa(struct dhcpcd_ctx *ctx, const struct ifa_msghdr *ifam)
                        ifra.ifra_addr.sin_len = sizeof(ifra.ifra_addr);
                        ifra.ifra_addr.sin_addr = addr;
                        if (ioctl(ctx->pf_inet_fd, SIOCGIFALIAS, &ifra) == -1) {
-                               if (errno != EADDRNOTAVAIL)
+                               if (errno != ENXIO && errno != EADDRNOTAVAIL)
                                        logerr("%s: SIOCGIFALIAS", __func__);
                                if (ifam->ifam_type != RTM_DELADDR)
                                        break;