Lines Matching defs:rt
131 struct rt_entry *rt;
243 rt = rtlookup(&prefix, n->rip6_prefix_length);
245 n->rip6_metric = (rt == NULL ?
247 min(rt->rt_metric, HOPCNT_INFINITY));
430 rt = rtlookup(&prefix, n->rip6_prefix_length);
431 if (rt == NULL) {
448 rt->rt_metric == HOPCNT_INFINITY)
465 if (IN6_ARE_ADDR_EQUAL(gate, &rt->rt_router)) {
466 if (n->rip6_metric != rt->rt_metric ||
467 rt->rt_ifp != ifp) {
468 rtchange(rt, gate, n->rip6_metric, ifp);
471 rt->rt_timer = 0;
473 } else if (n->rip6_metric < rt->rt_metric ||
474 (rt->rt_timer > (EXPIRE_TIME / 2) &&
475 rt->rt_metric == n->rip6_metric)) {
476 rtchange(rt, gate, n->rip6_metric, ifp);