Lines Matching refs:rts
781 struct rt_spare *rts, *rts0; in input_route() local
842 for (rts = rts0, i = NUM_SPARES; i != 0; i--, rts++) { in input_route()
843 if (rts->rts_router == new->rts_router) in input_route()
849 || BETTER_LINK(rt, rts0, rts)) in input_route()
850 rts0 = rts; in input_route()
862 if (new->rts_de_ag > rts->rts_de_ag in input_route()
863 && now_stale <= rts->rts_time) in input_route()
869 if (rts->rts_metric == HOPCNT_INFINITY in input_route()
871 new->rts_time = rts->rts_time; in input_route()
880 if (new->rts_metric > rts->rts_metric) in input_route()
888 if (rts->rts_gate == new->rts_gate in input_route()
889 && rts->rts_metric == new->rts_metric in input_route()
890 && rts->rts_tag == new->rts_tag) { in input_route()
891 trace_upslot(rt, rts, new); in input_route()
892 *rts = *new; in input_route()
898 rts_delete(rt, rts); in input_route()
913 rts = rts0; in input_route()
920 if (new->rts_metric >= rts->rts_metric) in input_route()
924 trace_upslot(rt, rts, new); in input_route()
925 *rts = *new; in input_route()
928 rtswitch(rt, rts); in input_route()