• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openvpn-2.3.1/src/openvpn/

Lines Matching defs:metric

177     buf_printf (&out, " metric %d", r->metric);
355 /* metric */
357 r->metric = 0;
358 if (is_route_parm_defined (ro->metric))
360 r->metric = atoi (ro->metric);
361 if (r->metric < 0)
363 msg (M_WARN, PACKAGE_NAME " ROUTE: route metric for network %s (%s) must be >= 0",
365 ro->metric);
372 r->metric = rl->spec.default_metric;
414 /* metric */
417 r6->metric = -1;
418 if (is_route_parm_defined (r6o->metric))
420 r6->metric = atoi (r6o->metric);
421 if (r6->metric < 0)
423 msg (M_WARN, PACKAGE_NAME " ROUTE: route metric for network %s (%s) must be >= 0",
425 r6o->metric);
432 r6->metric = rl6->default_metric;
452 const char *metric)
462 ro->metric = metric;
470 const char *metric)
479 ro->metric = metric;
1110 show_opt (ro->metric));
1186 setenv_int (es, BSTR (&name), r->metric);
1327 argv_printf_cat (&argv, "metric %d", r->metric);
1335 argv_printf_cat (&argv, "metric %d", r->metric);
1355 argv_printf_cat (&argv, "METRIC %d", r->metric);
1405 /* Solaris can only distinguish between "metric 0" == "on-link on the
1406 * interface where the IP address given is configured" and "metric > 0"
1413 argv_printf_cat (&argv, "%d", r->metric);
1425 argv_printf_cat (&argv, "-rtt %d", r->metric);
1445 argv_printf_cat (&argv, "-rtt %d", r->metric);
1465 argv_printf_cat (&argv, "-rtt %d", r->metric);
1495 argv_printf_cat (&argv, "-rtt %d", r->metric);
1573 msg( M_INFO, "add_route_ipv6(%s/%d -> %s metric %d) dev %s",
1574 network, r6->netbits, gateway, r6->metric, device );
1588 !(r6->metric_defined && r6->metric == 0 ) )
1602 if (r6->metric_defined && r6->metric > 0 )
1603 argv_printf_cat (&argv, " metric %d", r6->metric);
1613 if (r6->metric_defined && r6->metric > 0 )
1614 argv_printf_cat (&argv, " metric %d", r6->metric);
1641 argv_printf_cat (&argv, " METRIC %d", r->metric);
1660 * "metric 0" - otherwise, the routes will be nicely installed, but
1770 argv_printf_cat (&argv, "metric %d", r->metric);
1921 !(r6->metric_defined && r6->metric == 0 ) )
1944 if (r6->metric_defined && r6->metric > 0 )
1945 argv_printf_cat (&argv, " metric %d", r6->metric);
1973 argv_printf_cat (&argv, "METRIC %d", r->metric);
2172 const DWORD metric = row->dwForwardMetric1;
2179 (int)metric);
2181 if (!net && !mask && metric < lowest_metric)
2184 lowest_metric = metric;
2299 fr.dwForwardMetric1 = (r->flags & RT_METRIC_DEFINED) ? r->metric : 1;
2316 /* failed, try increasing the metric to work around Vista issue */
2457 unsigned int metric = 0;
2466 &metric,
2474 if (!net && !mask && metric < lowest_metric)
2479 lowest_metric = metric;