From 64627345a9ab4209ef07cb69ba81432b00b80e6c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 4 Sep 2024 11:48:46 +0100 Subject: [PATCH] IPv6ND: Don't warn about no global addresses for default route If we are not installing a default route. --- src/ipv6nd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.47.2