Searched refs:rts_metric (Results 1 – 7 of 7) sorted by relevance
204 char rts_metric; member218 #define rt_metric rt_spares[0].rts_metric249 #define BETTER_LINK(rt,A,B) ((A)->rts_metric < HOPCNT_INFINITY \251 && ((A)->rts_metric < (B)->rts_metric \254 || ((A)->rts_metric == (B)->rts_metric \258 && (A)->rts_metric == (B)->rts_metric)))
761 new.rts_metric = n->n_metric; in input()815 if (new->rts_metric == HOPCNT_INFINITY) in input_route()878 if (rts->rts_metric == HOPCNT_INFINITY in input_route()879 && new->rts_metric == HOPCNT_INFINITY) in input_route()889 if (new->rts_metric > rts->rts_metric) in input_route()898 && rts->rts_metric == new->rts_metric in input_route()906 if (new->rts_metric == HOPCNT_INFINITY) { in input_route()929 if (new->rts_metric >= rts->rts_metric) in input_route()
605 (void)fprintf(ftrace, "metric=%-2d ", rts->rts_metric); in print_rts()669 && rts->rts_metric == new->rts_metric in trace_upslot()697 -(new->rts_metric == rts->rts_metric), in trace_upslot()780 if (rt->rt_metric == new->rts_metric in trace_change()801 -(new->rts_metric == rt->rt_metric), in trace_change()
1168 loop_rts.rts_metric = 0; in ifinit()1176 loop_rts.rts_metric = 0; in ifinit()1235 loop_rts.rts_metric = 0; in ifinit()1242 loop_rts.rts_metric = 0; in ifinit()1260 loop_rts.rts_metric = intnetp->intnet_metric-1; in ifinit()1295 new.rts_metric = ifp->int_metric; in check_net_syn()1343 new.rts_metric = ifp->int_metric; in addrouteforif()
837 new.rts_metric = k->k_metric; in kern_check_static()1712 rts->rts_metric = HOPCNT_INFINITY; in rtadd()1759 if (rt->rt_metric != new->rts_metric) { in rtchange()1764 if (new->rts_metric == HOPCNT_INFINITY) { in rtchange()1841 if (swap.rts_metric == HOPCNT_INFINITY) { in rtswitch()1895 new.rts_metric = HOPCNT_INFINITY; in rtbad()1989 if (rts->rts_metric < HOPCNT_INFINITY in walk_bad()2060 if (rts->rts_metric < HOPCNT_INFINITY in walk_age()2083 new.rts_metric = HOPCNT_INFINITY; in walk_age()
519 new.rts_metric = HOPCNT_INFINITY; in rdisc_sort()547 new.rts_metric = HOPCNT_INFINITY-1; in rdisc_sort()
596 if (rts->rts_metric > metric in walk_supply()