Searched refs:rts_metric (Results 1 – 8 of 8) sorted by relevance
203 uint8_t rts_metric; member241 #define rt_metric rt_spares[0].rts_metric277 #define BETTER_LINK(rt, A, B) ((A)->rts_metric < HOPCNT_INFINITY && \279 ((A)->rts_metric < (B)->rts_metric || \282 ((A)->rts_metric == (B)->rts_metric && \286 (A)->rts_metric == (B)->rts_metric)))
739 new.rts_metric = HOPCNT_INFINITY-1; in input()940 new.rts_metric = n->n_metric; in input()1088 if (new->rts_metric == HOPCNT_INFINITY) in input_route()1155 if (rts->rts_metric == HOPCNT_INFINITY && in input_route()1156 new->rts_metric == HOPCNT_INFINITY) in input_route()1164 uint8_t old_metric = rts->rts_metric; in input_route()1170 if (new->rts_metric != old_metric) in input_route()1180 rts->rts_metric == new->rts_metric && in input_route()1193 if (new->rts_metric == HOPCNT_INFINITY) { in input_route()1210 if (rts0->rts_metric < HOPCNT_INFINITY) { in input_route()[all …]
772 (void) fprintf(ftrace, "metric=%-2d ", rts->rts_metric); in print_rts()879 rts->rts_metric == new->rts_metric && in trace_upslot()907 ((new->rts_metric == rts->rts_metric) ? -1 : 0), in trace_upslot()987 if (rt->rt_metric == new->rts_metric && in trace_change()1010 ((new->rts_metric == rt->rt_metric) ? -1 : 0), in trace_change()
1029 new.rts_metric = k->k_metric; in kern_check_static()1282 new.rts_metric = HOPCNT_INFINITY - 1; in rtm_lose()2073 if (rts->rts_metric == metric) { in walk_kern()2325 rts->rts_metric = HOPCNT_INFINITY; in rtadd()2367 if (rt->rt_metric != new->rts_metric) { in rtchange()2373 if (new->rts_metric == HOPCNT_INFINITY) { in rtchange()2456 if (swap.rts_metric == HOPCNT_INFINITY) { in rtswitch()2539 new.rts_metric = HOPCNT_INFINITY; in rtbad()2651 if (rts->rts_metric < HOPCNT_INFINITY && in walk_bad()2671 RT->rt_spares[0].rts_metric = HOPCNT_INFINITY; in walk_bad()[all …]
408 new.rts_metric = HOPCNT_INFINITY-1; in rdisc_age()427 new.rts_metric = HOPCNT_INFINITY-1; in rdisc_age()623 tmprts->rts_metric = HOPCNT_INFINITY; in rdisc_sort()719 new.rts_metric = HOPCNT_INFINITY-1; in rdisc_sort()843 tmprts->rts_metric = in rdisc_sort()853 new.rts_metric = HOPCNT_INFINITY-1; in rdisc_sort()
1654 loop_rts.rts_metric = 0; in ifscan()1663 loop_rts.rts_metric = 0; in ifscan()1729 loop_rts.rts_metric = 0; in ifscan()1736 loop_rts.rts_metric = 0; in ifscan()1756 loop_rts.rts_metric = intnetp->intnet_metric-1; in ifscan()1793 new.rts_metric = ifp->int_metric; in check_net_syn()1851 new.rts_metric = ifp->int_metric; in addrouteforif()
654 if (rts->rts_metric > metric || rts->rts_ifp != ws.ifp) in walk_supply()
1036 new.rts_metric = metric; in addroutefordefault()