From: Roy Marples Date: Wed, 11 Mar 2020 01:11:41 +0000 (+0000) Subject: RA: Prefer older routers at the preference X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d803cae7e15742a09e7da8a9a6a0baca048732d4;p=thirdparty%2Fdhcpcd.git RA: Prefer older routers at the preference --- diff --git a/src/ipv6nd.c b/src/ipv6nd.c index d548f6b0..1fd35e11 100644 --- a/src/ipv6nd.c +++ b/src/ipv6nd.c @@ -618,7 +618,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. */ /* We don't need to check time, becase newer