From: Roy Marples Date: Mon, 24 Mar 2025 12:05:11 +0000 (+0000) Subject: IPv6ND: Sort routers by reachability correctly. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6905242e621ba16dcbb481007f21866de91a5a1d;p=thirdparty%2Fdhcpcd.git IPv6ND: Sort routers by reachability correctly. Maybe fixes #492. --- 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;