]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
IPv6: Be explicit that lifetime zero means no longer a default router
authorRoy Marples <roy@marples.name>
Wed, 4 Oct 2023 12:38:44 +0000 (13:38 +0100)
committerRoy Marples <roy@marples.name>
Wed, 4 Oct 2023 12:38:44 +0000 (13:38 +0100)
Fixes #244

src/ipv6nd.c

index 906bb93ee3fefda570a01c9ac1dfc3640e734a66..9bf7c5dff42a8298d80357b550c1dce8348d77a5 100644 (file)
@@ -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;