Lines Matching refs:metric
61 char metric; /* adjust metrics by interface */
425 * shutting down, admit only a bad metric.
464 char metric, pref;
533 metric = RT->rt_metric;
600 * Notice spare routes with the same metric that we are about to
614 if (rts->rts_metric > metric
620 * toward its source with an infinite metric.
622 * better metric than we now have, then we should
633 || RT->rt_poison_metric >= metric
638 metric = HOPCNT_INFINITY;
643 /* Keep track of the best metric with which the
646 if (RT->rt_poison_metric >= metric
649 RT->rt_poison_metric = metric;
652 /* Adjust the outgoing metric by the cost of the link.
655 pref = RT->rt_poison_metric + ws.metric;
656 metric += ws.metric;
660 * If the route recently was advertised with a metric that
664 if (metric >= HOPCNT_INFINITY) {
670 metric = HOPCNT_INFINITY;
673 ag_check(dst, RT->rt_mask, 0, nhop, metric, pref,
721 ws.metric = 1;
723 /* Adjust the advertised metric by the outgoing interface
724 * metric.
726 ws.metric = ifp->int_metric + 1 + ifp->int_adj_outmetric;
781 || rt->rt_metric+ws.metric >= def_metric) {
786 def_metric = rt->rt_metric+ws.metric;