From: Roy Marples Date: Mon, 30 Mar 2020 15:56:12 +0000 (+0100) Subject: BSD: Don't warn if the OS does not support miss filtering. X-Git-Tag: v9.0.0~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d775b0deb8cf3757d62afa3b9d1a53902b87ff50;p=thirdparty%2Fdhcpcd.git BSD: Don't warn if the OS does not support miss filtering. The compile warning is enough. --- diff --git a/src/route.c b/src/route.c index 1b9c26f0..401ce07c 100644 --- a/src/route.c +++ b/src/route.c @@ -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