Skip to content

Commit 16d6560

Browse files
committed
IPv6ND: Sort routers by reachability correctly.
Related to #492.
1 parent f7dab17 commit 16d6560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ipv6nd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ ipv6nd_sortrouters(struct dhcpcd_ctx *ctx)
507507
continue;
508508
if (ra1->lifetime == 0 && ra2->lifetime != 0)
509509
continue;
510-
if (!ra1->isreachable && ra2->reachable)
510+
if (!ra1->isreachable && ra2->isreachable)
511511
continue;
512512
if (ipv6nd_rtpref(ra1->flags) <= ipv6nd_rtpref(ra2->flags))
513513
continue;

0 commit comments

Comments
 (0)