From: Roy Marples Date: Tue, 6 Jan 2015 13:53:54 +0000 (+0000) Subject: Warn about IPv6 kernel autoconf being disabled on BSD platforms. X-Git-Tag: v6.7.0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=427b10c3135d1d8236866a075fa7952e00d5c8fa;p=thirdparty%2Fdhcpcd.git Warn about IPv6 kernel autoconf being disabled on BSD platforms. --- diff --git a/if-bsd.c b/if-bsd.c index dbc3d7a4..4fd68d46 100644 --- a/if-bsd.c +++ b/if-bsd.c @@ -1209,15 +1209,15 @@ if_checkipv6(struct dhcpcd_ctx *ctx, const struct interface *ifp, int own) ifp->name); if (del_if_nd6_flag(ifp->name, ND6_IFF_ACCEPT_RTADV) == -1) - { syslog(LOG_ERR, "%s: del_if_nd6_flag: " "ND6_IFF_ACCEPT_RTADV: %m", ifp->name); - return ra; - } - ra = 0; - } + else + ra = 0; + } else if (ra == 0 && !own) + syslog(LOG_WARNING, + "%s: IPv6 kernel autoconf disabled", ifp->name); #ifdef ND6_IFF_OVERRIDE_RTADV if (override == 0 && ra) return ctx->ra_global;