From: Roy Marples Date: Fri, 8 Feb 2019 17:14:26 +0000 (+0000) Subject: BSD: don't log an error if the interface departs during SIOCGIFALIAS X-Git-Tag: v7.2.0~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b80117b3aad7d410290d56e13f6793173cf1102c;p=thirdparty%2Fdhcpcd.git BSD: don't log an error if the interface departs during SIOCGIFALIAS --- diff --git a/src/if-bsd.c b/src/if-bsd.c index 0f4cc008..0fe6d200 100644 --- a/src/if-bsd.c +++ b/src/if-bsd.c @@ -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;