]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Warn about IPv6 kernel autoconf being disabled on BSD platforms.
authorRoy Marples <roy@marples.name>
Tue, 6 Jan 2015 13:53:54 +0000 (13:53 +0000)
committerRoy Marples <roy@marples.name>
Tue, 6 Jan 2015 13:53:54 +0000 (13:53 +0000)
if-bsd.c

index dbc3d7a45bf221d09068692b2a8eee00c1e49cfc..4fd68d46ee4fe2e9a91ff0941863130daf71b965 100644 (file)
--- 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;