From: Roy Marples Date: Wed, 4 Sep 2024 10:48:46 +0000 (+0100) Subject: IPv6ND: Don't warn about no global addresses for default route X-Git-Tag: v10.1.0~15 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=64627345a9ab4209ef07cb69ba81432b00b80e6c;p=thirdparty%2Fdhcpcd.git IPv6ND: Don't warn about no global addresses for default route If we are not installing a default route. --- diff --git a/src/ipv6nd.c b/src/ipv6nd.c index 11f5dc5f..3d3f1fbd 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -1598,7 +1598,8 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx, logwarnx("%s: %s: no longer a default router (lifetime = 0)", ifp->name, rap->sfrom); - if (new_data && !has_address && rap->lifetime && !ipv6_anyglobal(ifp)) + if (new_data && !has_address && rap->lifetime && + ifp->options->options & DHCPCD_GATEWAY && !ipv6_anyglobal(ifp)) logwarnx("%s: no global addresses for default route", ifp->name);