Home
last modified time | relevance | path

Searched refs:rts_metric (Results 1 – 8 of 8) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Ddefs.h203 uint8_t rts_metric; member
241 #define rt_metric rt_spares[0].rts_metric
277 #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)))
H A Dinput.c739 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()
1223 rts->rts_metric = HOPCNT_INFINITY; in input_route()
[all …]
H A Dtrace.c772 (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()
H A Dtable.c1029 new.rts_metric = k->k_metric; in kern_check_static()
1282 new.rts_metric = HOPCNT_INFINITY - 1; in rtm_lose()
2072 if (rts->rts_metric == metric) { in walk_kern()
2324 rts->rts_metric = HOPCNT_INFINITY; in rtadd()
2366 if (rt->rt_metric != new->rts_metric) { in rtchange()
2372 if (new->rts_metric == HOPCNT_INFINITY) { in rtchange()
2455 if (swap.rts_metric == HOPCNT_INFINITY) { in rtswitch()
2538 new.rts_metric = HOPCNT_INFINITY; in rtbad()
2650 if (rts->rts_metric < HOPCNT_INFINITY && in walk_bad()
2705 rts->rts_metric = HOPCNT_INFINITY; in walk_rewire()
[all …]
H A Drdisc.c406 new.rts_metric = HOPCNT_INFINITY-1; in rdisc_age()
425 new.rts_metric = HOPCNT_INFINITY-1; in rdisc_age()
621 tmprts->rts_metric = HOPCNT_INFINITY; in rdisc_sort()
717 new.rts_metric = HOPCNT_INFINITY-1; in rdisc_sort()
841 tmprts->rts_metric = in rdisc_sort()
851 new.rts_metric = HOPCNT_INFINITY-1; in rdisc_sort()
H A Dif.c1654 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()
H A Dparms.c1036 new.rts_metric = metric; in addroutefordefault()
H A Doutput.c652 if (rts->rts_metric > metric || rts->rts_ifp != ws.ifp) in walk_supply()