Skip to content

Commit

Permalink
IPv6ND: Don't warn about no global addresses for default route
Browse files Browse the repository at this point in the history
If we are not installing a default route.
  • Loading branch information
rsmarples committed Sep 4, 2024
1 parent b22ef29 commit 6462734
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ipv6nd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6462734

Please sign in to comment.