diff options
| author | Roy Marples <roy@marples.name> | 2020-03-11 01:11:41 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2020-03-11 01:11:41 +0000 |
| commit | 8de9d644121116dea882567cad73c0e70d6ea9ce (patch) | |
| tree | d604f20c4c436dcd06f55e8a9e666a6f42c108b5 /src/ipv6nd.c | |
| parent | a287b9f1929cddc05cac164003385f85adf54266 (diff) | |
| download | dhcpcd-8de9d644121116dea882567cad73c0e70d6ea9ce.tar.xz | |
RA: Prefer older routers at the preference
Diffstat (limited to 'src/ipv6nd.c')
| -rw-r--r-- | src/ipv6nd.c | 2 |
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 |
