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

Lines Matching defs:metric

67        metric           :  Done
85 metric : Done
86 metric-type : Not yet
289 /* `match metric METRIC' */
312 /* Route map `match metric' match statement. `arg' is MED value */
329 /* Free route map's compiled `match metric' value. */
336 /* Route map commands for metric matching. */
339 "metric",
770 /* `set metric METRIC' */
772 /* Set metric to attribute. */
777 char *metric;
784 metric = rule;
791 if (all_digit (metric))
793 metric_val = strtoul (metric, (char **)NULL, 10);
798 metric_val = strtoul (metric+1, (char **)NULL, 10);
800 if (strncmp (metric, "+", 1) == 0)
807 else if (strncmp (metric, "-", 1) == 0)
819 /* set metric compilation. */
823 u_int32_t metric;
828 /* set metric value check*/
829 metric = strtoul (arg, &endptr, 10);
830 if (*endptr != '\0' || metric == ULONG_MAX)
835 /* set metric +/-value check */
841 metric = strtoul (arg+1, &endptr, 10);
842 if (*endptr != '\0' || metric == ULONG_MAX)
849 /* Free route map's compiled `set metric' value. */
856 /* Set metric rule structure. */
859 "metric",
913 /* Set metric rule structure. */
1285 /* Set metric rule structure. */
1777 /* Set metric rule structure. */
2156 "match metric <0-4294967295>",
2158 "Match metric of route\n"
2161 return bgp_route_match_add (vty, vty->index, "metric", argv[0]);
2166 "no match metric",
2169 "Match metric of route\n")
2172 return bgp_route_match_delete (vty, vty->index, "metric", NULL);
2174 return bgp_route_match_delete (vty, vty->index, "metric", argv[0]);
2179 "no match metric <0-4294967295>",
2182 "Match metric of route\n"
2366 "set metric (<0-4294967295>|<+/-metric>)",
2370 "Add or subtract metric\n")
2372 return bgp_route_set_add (vty, vty->index, "metric", argv[0]);
2377 "no set metric",
2383 return bgp_route_set_delete (vty, vty->index, "metric", NULL);
2385 return bgp_route_set_delete (vty, vty->index, "metric", argv[0]);
2390 "no set metric <0-4294967295>",