]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
RA: Prefer older routers at the preference
authorRoy Marples <roy@marples.name>
Wed, 11 Mar 2020 01:11:41 +0000 (01:11 +0000)
committerRoy Marples <roy@marples.name>
Wed, 11 Mar 2020 01:11:41 +0000 (01:11 +0000)
src/ipv6nd.c

index d548f6b0b15604bfb0bb3513daed696b9d0a2f91..1fd35e110116539d4225da19ab21fe7486c319d8 100644 (file)
@@ -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