• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/ripd/

Lines Matching defs:metric

110     int metric;
137 int flags, refcnt, use, metric, mtu, window, rtt;
156 iface, dest, gate, &flags, &refcnt, &use, &metric,
168 fox_rt_info_table[j].metric=metric;
170 //sprintf(str, "addr: %x, metric: %d\n", fox_rt_info_table[j].prefix, fox_rt_info_table[j].metric);
269 rinfo->metric);
270 /* - The metric for the route is set to 16 (infinity). This causes
272 rinfo->metric = RIP_METRIC_INFINITY;
288 if (rinfo->metric != RIP_METRIC_INFINITY)
520 /* Once the entry has been validated, update the metric by
526 ret = rip_offset_list_apply_in (&p, ifp, &rte->metric);
528 /* If offset-list does not modify the metric use interface's
529 metric. */
531 rte->metric += ifp->metric;
533 if (rte->metric > RIP_METRIC_INFINITY)
534 rte->metric = RIP_METRIC_INFINITY;
562 && rinfo->metric != RIP_METRIC_INFINITY)
568 && rinfo->metric != RIP_METRIC_INFINITY)
576 this route to the routing table, unless the metric is
579 if (rte->metric != RIP_METRIC_INFINITY)
587 /* - Setting the metric to the newly calculated metric (as
589 rinfo->metric = rte->metric;
619 rip_zebra_ipv4_add (&p, &rinfo->nexthop, rinfo->metric,
639 router as the existing route, and the new metric is different
640 than the old one; or, if the new metric is lower than the old
642 if ((same && rinfo->metric != rte->metric) ||
643 rte->metric < rinfo->metric)
646 new metric in, and adjust the next hop address (if
648 oldmetric = rinfo->metric;
649 rinfo->metric = rte->metric;
662 rinfo->metric < RIP_METRIC_INFINITY)
672 rip_zebra_ipv4_add (&p, nexthop, rinfo->metric,
677 /* Update nexthop and/or metric value. */
681 rip_zebra_ipv4_add (&p, nexthop, rinfo->metric,
694 /* - If the new metric is infinity, start the deletion
696 if (rinfo->metric == RIP_METRIC_INFINITY)
698 /* If the new metric is infinity, the deletion process
701 started only when the metric is first set to
702 infinity. If the metric was already infinity, then a
711 /* - The metric for the route is set to 16
816 zlog_info (" %s/%d -> %s family %d tag %d metric %ld",
820 (u_long)ntohl (rte->metric));
827 zlog_info (" %s family %d tag %d metric %ld",
830 (u_long)ntohl (rte->metric));
1170 /* Convert metric value to host byte order. */
1171 rte->metric = ntohl (rte->metric);
1173 /* - is the metric valid (i.e., between 1 and 16, inclusive) */
1174 if (! (rte->metric >= 1 && rte->metric <= 16))
1177 zlog_info ("Route's metric is not in the 1-16 range.");
1412 && rinfo->metric != RIP_METRIC_INFINITY)
1434 rinfo->metric);
1446 rinfo->metric = 1;
1484 rinfo->metric = RIP_METRIC_INFINITY;
1528 metric of infinity (i.e., 16), then this is a request to send the
1532 ntohl (rte->metric) == RIP_METRIC_INFINITY)
1541 database and, if there is a route, put that route's metric in
1542 the metric field of the RTE. If there is no explicit route
1543 to the specified destination, put infinity in the metric
1559 rte->metric = htonl (rinfo->metric);
1563 rte->metric = htonl (RIP_METRIC_INFINITY);
2106 /* replace metric value here */
2118 if ( fox_rt_info_table[i].metric > 0 )
2120 rinfo->metric_out = fox_rt_info_table[i].metric;
2275 rinfo->metric_out = rinfo->metric;
2311 /* When route-map does not set metric. */
2314 /* If redistribute metric is set. */
2316 && rinfo->metric != RIP_METRIC_INFINITY)
2318 rinfo->metric_out = rip->route_map[rinfo->type].metric;
2323 one, use default-metric value*/
2326 && rinfo->metric != RIP_METRIC_INFINITY)
2333 if (rinfo->metric != RIP_METRIC_INFINITY)
2638 rinfo->metric = RIP_METRIC_INFINITY;
2696 rte->metric = htonl (RIP_METRIC_INFINITY);
2901 rinfo->metric = rip->default_metric;
2906 "default-metric <1-16>",
2907 "Set a metric of redistribute routes\n"
2908 "Default metric\n")
2920 "no default-metric",
2922 "Set a metric of redistribute routes\n"
2923 "Default metric\n")
2935 "no default-metric <1-16>",
2937 "Set a metric of redistribute routes\n"
2938 "Default metric\n")
3366 rinfo->metric);
3368 vty_out (vty, "0.0.0.0 %2d ", rinfo->metric);
3377 else if (rinfo->metric == RIP_METRIC_INFINITY)
3431 /* Default metric information. */
3432 vty_out (vty, " Default redistribution metric is %d%s",
3536 /* RIP default metric configuration */
3538 vty_out (vty, " default-metric %d%s",
3687 &rinfo->nexthop, rinfo->metric);