Lines Matching defs:metric
161 * sort them by a metric.
164 /* The metric we sort them by. */
165 ULONG metric;
177 /* Sort Address values \a left and \a right by metric, returning the usual
184 /* Lower metric the more preferred */
185 if (left->metric < right->metric) {
188 if (left->metric > right->metric) {
215 * So, we sort the DNS servers by the same metric values used to determine how
222 * This function computes the metric we use to sort. On the interface
224 * that route's metric with \a interfaceMetric to compute a metric for the
225 * destination address on that interface. This metric can be used as a weight
231 * is the metric for sending IP packets to this DNS server?" which allows us
243 * metric, but only when using the OpenWatcom compiler.
266 /* If the metric is "unused" (-1) or too large for us to add the two
271 /* Return the worst possible metric. */
275 /* Return the metric value from that row, plus the interface metric.
377 * compute the resulting total metric, just as Windows routing will do.
378 * Then, sort all the addresses found by the metric.
403 addresses[addressesIndex].metric = getBestRouteMetric(
447 addresses[addressesIndex].metric = getBestRouteMetric(
476 /* Sort all of the textual addresses by their metric (and original index if