]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
BSD: Don't warn if the OS does not support miss filtering.
authorRoy Marples <roy@marples.name>
Mon, 30 Mar 2020 15:56:12 +0000 (16:56 +0100)
committerRoy Marples <roy@marples.name>
Mon, 30 Mar 2020 15:56:12 +0000 (16:56 +0100)
The compile warning is enough.

src/route.c

index 1b9c26f022048427f65d89753d67a460e7e82e71..401ce07c6ff82ebe3b0d8eca528566d7bd01474d 100644 (file)
@@ -729,7 +729,7 @@ rt_build(struct dhcpcd_ctx *ctx, int af)
        }
 
 #ifdef BSD
-       if (if_missfilter_apply(ctx) == -1)
+       if (if_missfilter_apply(ctx) == -1 && errno != ENOTSUP)
                logerr("if_missfilter_apply");
 #endif