From: Roy Marples Date: Tue, 20 May 2025 23:54:58 +0000 (+0100) Subject: IPv6ND: Sort routers by reachability correctly. X-Git-Tag: v10.2.4~2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=16d65603a84b15862adf05e7257aea46435fe6ff;p=thirdparty%2Fdhcpcd.git IPv6ND: Sort routers by reachability correctly. Related to #492. --- 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;