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:50 +0000 |
| commit | 751765bdfdd4b2016f45e6920f441a9cea06dc16 (patch) | |
| tree | 9f8f620df0e2d39fe910e77b1229cbb8bf67345b | |
| parent | 4978cf5baa8fed669241edf37f5da132dc8c7dfc (diff) | |
| download | dhcpcd-751765bdfdd4b2016f45e6920f441a9cea06dc16.tar.xz | |
RA: Prefer older routers at the preference
| -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 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, >=)) |
