summaryrefslogtreecommitdiffstats
path: root/src/ipv6nd.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-03-11 01:11:41 +0000
committerRoy Marples <roy@marples.name>2020-03-11 01:11:41 +0000
commitd803cae7e15742a09e7da8a9a6a0baca048732d4 (patch)
treed604f20c4c436dcd06f55e8a9e666a6f42c108b5 /src/ipv6nd.c
parent3e718d3696104aaab74d535e1f85554fed0a6dcd (diff)
downloaddhcpcd-d803cae7e15742a09e7da8a9a6a0baca048732d4.tar.xz
RA: Prefer older routers at the preference
Diffstat (limited to 'src/ipv6nd.c')
-rw-r--r--src/ipv6nd.c2
1 files changed, 1 insertions, 1 deletions
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