From 6905242e621ba16dcbb481007f21866de91a5a1d Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 24 Mar 2025 12:05:11 +0000 Subject: [PATCH] IPv6ND: Sort routers by reachability correctly. Maybe fixes #492. --- src/ipv6nd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipv6nd.c b/src/ipv6nd.c index 39fe4731..c5e8546a 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -502,7 +502,7 @@ ipv6nd_sortrouters(struct dhcpcd_ctx *ctx) continue; if (ra1->lifetime == 0 && ra2->lifetime != 0) continue; - if (!ra1->isreachable && ra2->reachable) + if (!ra1->isreachable && ra2->isreachable) continue; if (ipv6nd_rtpref(ra1->flags) <= ipv6nd_rtpref(ra2->flags)) continue; -- 2.47.2