]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
BSD: Don't log an error failing to get inet6 adress flags
authorRoy Marples <roy@marples.name>
Wed, 29 Jan 2020 17:06:34 +0000 (17:06 +0000)
committerRoy Marples <roy@marples.name>
Wed, 29 Jan 2020 17:06:34 +0000 (17:06 +0000)
When the interface departs and we're validating route messages.
This mirrors inet.

src/if-bsd.c

index 534e2f457ed175ab2601c4067f12a25966d18bf3..b14650ce537f57db77a2fd4df87f38f7e19e58e2 100644 (file)
@@ -1448,7 +1448,7 @@ if_ifa(struct dhcpcd_ctx *ctx, const struct ifa_msghdr *ifam)
                 */
                flags = if_addrflags6(ifp, &addr6, NULL);
                if (flags == -1) {
-                       if (errno != EADDRNOTAVAIL)
+                       if (errno != ENXIO && errno != EADDRNOTAVAIL)
                                logerr("%s: if_addrflags6", __func__);
                        if (ifam->ifam_type != RTM_DELADDR)
                                break;