From 16d65603a84b15862adf05e7257aea46435fe6ff Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 21 May 2025 00:54:58 +0100 Subject: [PATCH] IPv6ND: Sort routers by reachability correctly. Related to #492. --- src/ipv6nd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ipv6nd.c b/src/ipv6nd.c index cad5ce5b..09e0d16e 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -507,7 +507,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.3