Lines Matching refs:rts
1067 struct rt_spare *rts, *rts0;
1125 for (rts = rts0, i = rt->rt_num_spares; i != 0; i--, rts++) {
1126 if (rts->rts_router == new->rts_router)
1132 if (BETTER_LINK(rt, rts0, rts))
1133 rts0 = rts;
1147 if (new->rts_de_ag > rts->rts_de_ag &&
1148 now_stale <= rts->rts_time)
1155 if (rts->rts_metric == HOPCNT_INFINITY &&
1157 new->rts_time = rts->rts_time;
1164 uint8_t old_metric = rts->rts_metric;
1179 if (rts->rts_gate == new->rts_gate &&
1180 rts->rts_metric == new->rts_metric &&
1181 rts->rts_tag == new->rts_tag) {
1183 (rts->rts_ifp != new->rts_ifp))
1185 trace_upslot(rt, rts, new);
1186 *rts = *new;
1194 rts_delete(rt, rts);
1221 for (rts = rts0, i = SPARE_INC;
1222 i != 0; i--, rts++)
1223 rts->rts_metric = HOPCNT_INFINITY;
1226 rts = rts0;
1234 if (new->rts_metric >= rts->rts_metric)
1237 trace_upslot(rt, rts, new);
1238 *rts = *new;
1241 rtswitch(rt, rts);