Lines Matching refs:ra2
497 struct ra *ra1, *ra2;
501 TAILQ_FOREACH(ra2, &sorted_routers, next) {
502 if (ra1->iface->metric > ra2->iface->metric)
504 if (ra1->expired && !ra2->expired)
506 if (ra1->willexpire && !ra2->willexpire)
508 if (ra1->lifetime == 0 && ra2->lifetime != 0)
510 if (!ra1->isreachable && ra2->isreachable)
512 if (ipv6nd_rtpref(ra1->flags) <= ipv6nd_rtpref(ra2->flags))
518 TAILQ_INSERT_BEFORE(ra2, ra1, next);
521 if (ra2 == NULL)