From: Roy Marples Date: Wed, 11 Mar 2020 01:11:41 +0000 (+0000) Subject: RA: Prefer older routers at the preference X-Git-Tag: v8.1.7~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=751765bdfdd4b2016f45e6920f441a9cea06dc16;p=thirdparty%2Fdhcpcd.git RA: Prefer older routers at the preference --- diff --git a/src/ipv6nd.c b/src/ipv6nd.c index 586ad943..3904c3b0 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -595,7 +595,7 @@ ipv6nd_sortrouters(struct dhcpcd_ctx *ctx) continue; if (!ra1->isreachable && ra2->reachable) continue; - if (ipv6nd_rtpref(ra1) < ipv6nd_rtpref(ra2)) + if (ipv6nd_rtpref(ra1) <= ipv6nd_rtpref(ra2)) continue; /* All things being equal, prefer older routers. */ if (timespeccmp(&ra1->acquired, &ra2->acquired, >=))