Lines Matching refs:rts
785 struct rt_spare *rts, *rts0; in input_route() local
846 for (rts = rts0, i = NUM_SPARES; i != 0; i--, rts++) { in input_route()
847 if (rts->rts_router == new->rts_router) in input_route()
853 || BETTER_LINK(rt, rts0, rts)) in input_route()
854 rts0 = rts; in input_route()
866 if (new->rts_de_ag > rts->rts_de_ag in input_route()
867 && now_stale <= rts->rts_time) in input_route()
873 if (rts->rts_metric == HOPCNT_INFINITY in input_route()
875 new->rts_time = rts->rts_time; in input_route()
884 if (new->rts_metric > rts->rts_metric) in input_route()
892 if (rts->rts_gate == new->rts_gate in input_route()
893 && rts->rts_metric == new->rts_metric in input_route()
894 && rts->rts_tag == new->rts_tag) { in input_route()
895 trace_upslot(rt, rts, new); in input_route()
896 *rts = *new; in input_route()
902 rts_delete(rt, rts); in input_route()
917 rts = rts0; in input_route()
924 if (new->rts_metric >= rts->rts_metric) in input_route()
928 trace_upslot(rt, rts, new); in input_route()
929 *rts = *new; in input_route()
932 rtswitch(rt, rts); in input_route()