From: Roy Marples Date: Wed, 4 Oct 2023 12:38:44 +0000 (+0100) Subject: IPv6: Be explicit that lifetime zero means no longer a default router X-Git-Tag: v10.0.3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c36bfc83dbe9ba8dc53e01e8581448b0f232522;p=thirdparty%2Fdhcpcd.git IPv6: Be explicit that lifetime zero means no longer a default router Fixes #244 --- diff --git a/src/ipv6nd.c b/src/ipv6nd.c index 906bb93e..9bf7c5df 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -1238,7 +1238,7 @@ ipv6nd_handlera(struct dhcpcd_ctx *ctx, old_lifetime = rap->lifetime; rap->lifetime = ntohs(nd_ra->nd_ra_router_lifetime); if (!new_rap && rap->lifetime == 0 && old_lifetime != 0) - logwarnx("%s: %s: no longer a default router", + logwarnx("%s: %s: no longer a default router (lifetime = 0)", ifp->name, rap->sfrom); if (nd_ra->nd_ra_curhoplimit != 0) rap->hoplimit = nd_ra->nd_ra_curhoplimit;