Lines Matching full:metric
47 char metric; /* adjust metrics by interface */ member
397 * shutting down, admit only a bad metric. in supply_out()
436 char metric, pref; in walk_supply() local
505 metric = RT->rt_metric; in walk_supply()
572 * Notice spare routes with the same metric that we are about to in walk_supply()
586 if (rts->rts_metric > metric in walk_supply()
592 * toward its source with an infinite metric. in walk_supply()
594 * better metric than we now have, then we should in walk_supply()
605 || RT->rt_poison_metric >= metric in walk_supply()
610 metric = HOPCNT_INFINITY; in walk_supply()
615 /* Keep track of the best metric with which the in walk_supply()
618 if (RT->rt_poison_metric >= metric in walk_supply()
621 RT->rt_poison_metric = metric; in walk_supply()
624 /* Adjust the outgoing metric by the cost of the link. in walk_supply()
627 pref = RT->rt_poison_metric + ws.metric; in walk_supply()
628 metric += ws.metric; in walk_supply()
632 * If the route recently was advertised with a metric that in walk_supply()
636 if (metric >= HOPCNT_INFINITY) { in walk_supply()
642 metric = HOPCNT_INFINITY; in walk_supply()
645 ag_check(dst, RT->rt_mask, 0, nhop, metric, pref, in walk_supply()
692 ws.metric = 1; in supply()
694 /* Adjust the advertised metric by the outgoing interface in supply()
695 * metric. in supply()
697 ws.metric = ifp->int_metric + 1 + ifp->int_adj_outmetric; in supply()
752 || rt->rt_metric+ws.metric >= def_metric) { in supply()
757 def_metric = rt->rt_metric+ws.metric; in supply()