Home
last modified time | relevance | path

Searched refs:metric (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/tests/sys/net/routing/
H A Dtest_routing.sh21 local metric="$3"
25 select(.metric == '${metric}') |
56 route -6 add -net ${route}/64 -gateway ${nhop2} -weight 10 -metric 2
58 route -6 add -net ${route}/64 -gateway ${nhop3} -weight 10 -metric 2
70 route -6 add -net ${route}/64 -gateway ${nhop1} -metric 3
77 route -6 add -net ${route}/64 -gateway ${nhop1} -metric 3
81 route -6 add -net ${route}/64 -gateway ${nhop1} -metric 1
156 route -6 add -net ${route}/64 -gateway ${nhop1} -metric 3
158 route -6 add -net ${route}/64 -gateway ${nhop1} -weight 10 -metric 2
160 route -6 add -net ${route}/64 -gateway ${nhop2} -weight 10 -metric 2
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-dvmrp.c150 u_int metric, done; in print_report() local
184 metric = GET_U_1(bp); in print_report()
186 done = metric & 0x80; in print_report()
187 metric &= 0x7f; in print_report()
189 metric); in print_report()
235 u_char metric; in print_neighbors() local
246 metric = GET_U_1(bp); in print_neighbors()
260 GET_IPADDR_STRING(bp), metric, thresh); in print_neighbors()
278 u_char metric, thresh, flags; in print_neighbors2() local
290 metric = GET_U_1(bp); in print_neighbors2()
[all …]
H A Dprint-ripng.c94 uint8_t metric; in rip6_entry_print() local
101 metric = GET_U_1(ni->rip6_metric); in rip6_entry_print()
102 if (metric && print_metric) in rip6_entry_print()
103 ND_PRINT(" (%u)", metric); in rip6_entry_print()
H A Dprint-igrp.c70 u_int metric, mtu; in igrp_entry_print() local
74 metric = ND_MIN(bandwidth + delay, 0xffffff); in igrp_entry_print()
79 GET_U_1(igr->igr_rel), GET_U_1(igr->igr_ld), metric, in igrp_entry_print()
H A Dprint-babel.c535 u_short interval, seqno, metric; in babel_print_v2_tlvs() local
552 metric = GET_BE_U_2(message + 10); in babel_print_v2_tlvs()
558 metric, seqno, format_interval_update(interval)); in babel_print_v2_tlvs()
646 u_short interval, seqno, metric; in babel_print_v2_tlvs() local
658 metric = GET_BE_U_2(message + 10); in babel_print_v2_tlvs()
676 metric, seqno, format_interval_update(interval)); in babel_print_v2_tlvs()
H A Dprint-eigrp.c144 nd_uint32_t metric; member
185 nd_uint16_t metric; member
414 GET_BE_U_4(tlv_ptr.eigrp_tlv_ip_ext->metric)); in eigrp_print()
492 GET_BE_U_2(tlv_ptr.eigrp_tlv_at_ext->metric)); in eigrp_print()
/freebsd/usr.sbin/prometheus_sysctl_exporter/
H A Dprometheus_sysctl_exporter.c377 char *metric, size_t mlen) in oid_get_metric() argument
384 snprintf(metric, mlen, "%s", "sysctl"); in oid_get_metric()
389 strlcat(metric, "_", mlen); in oid_get_metric()
394 strlcat(metric, buf, mlen); in oid_get_metric()
402 strlcat(metric, "_celsius", mlen); in oid_get_metric()
404 strlcat(metric, "_seconds", mlen); in oid_get_metric()
417 strlcat(metric, buf, mlen); in oid_get_metric()
421 strlcat(metric, "\\", mlen); in oid_get_metric()
423 strlcat(metric, buf, mlen); in oid_get_metric()
425 strlcat(metric, "\"", mlen); in oid_get_metric()
[all …]
/freebsd/usr.sbin/route6d/misc/
H A Dchkrt38 $metric = $1;
42 print "NOT FOUND: $dst $intf $gateway $metric $age\n";
47 print "WRONG GW: $dst $intf $gateway $metric $age\n";
53 print "WRONG IF: $dst $intf $gateway $metric $age\n";
/freebsd/sbin/routed/
H A Doutput.c47 char metric; /* adjust metrics by interface */ member
436 char metric, pref; in walk_supply() local
505 metric = RT->rt_metric; in walk_supply()
586 if (rts->rts_metric > metric in walk_supply()
605 || RT->rt_poison_metric >= metric in walk_supply()
610 metric = HOPCNT_INFINITY; in walk_supply()
618 if (RT->rt_poison_metric >= metric in walk_supply()
621 RT->rt_poison_metric = metric; in walk_supply()
627 pref = RT->rt_poison_metric + ws.metric; in walk_supply()
628 metric += ws.metric; in walk_supply()
[all …]
H A Dparms.c164 int metric, n, lnum; in gwkludge() local
212 net_host, dname, gname, &metric, qual); in gwkludge()
218 if (metric >= HOPCNT_INFINITY) { in gwkludge()
264 if (metric == 0) in gwkludge()
265 metric = 1; in gwkludge()
275 if (metric == 0) in gwkludge()
276 metric = 1; in gwkludge()
280 if (metric != 0) { in gwkludge()
330 ifp->int_metric = metric; in gwkludge()
H A Dtable.c277 char metric, in ag_check() argument
302 nc_ag.ag_metric = metric; in ag_check()
392 ag->ag_metric = metric; in ag_check()
494 ag->ag_metric = metric; in ag_check()
495 metric = x; in ag_check()
581 nag->ag_metric = metric; in ag_check()
670 int metric, in rtioctl() argument
685 # define ARGS rtm_type_name(action), rtname(dst,mask,gate), metric, flags in rtioctl()
695 if (metric != 0 || action == RTM_CHANGE) { in rtioctl()
696 w.w_rtm.rtm_rmx.rmx_hopcount = metric; in rtioctl()
[all …]
/freebsd/contrib/ntp/ntpd/
H A Drefclock_chu.c320 double metric; /* integrator sum */ member
1436 int metric; /* distance metric */ in chu_major() local
1458 metric = 0; in chu_major()
1471 metric += val1; in chu_major()
1487 return (metric); in chu_major()
1533 double metric; in chu_newchan() local
1556 sp->metric -= sp->integ[sp->iptr]; in chu_newchan()
1558 sp->metric += sp->integ[sp->iptr]; in chu_newchan()
1561 metric = 0; in chu_newchan()
1564 if (up->xmtr[i].metric > metric) { in chu_newchan()
[all …]
H A Drefclock_wwv.c492 double metric; /* signal quality metric */ member
1187 * When the channel metric reaches threshold and the second in wwv_rf()
1205 if (sp->metric >= TTHR && epoch == sp->mepoch % WWV_SEC) in wwv_rf()
1350 sp->metric = 0; in wwv_qrz()
1352 sp->metric = wwv_metric(sp); in wwv_qrz()
1357 sp->reach & 0xffff, sp->metric, sp->synmax, in wwv_qrz()
1823 * the channel metric computed by the wwv_metric() routine. in wwv_rsec()
1842 sp->metric = wwv_metric(sp); in wwv_rsec()
1857 rp->metric in wwv_rsec()
[all...]
/freebsd/sys/net/route/
H A Dnhgrp_ctl.c148 uint32_t metric, uint64_t *ptotal) in calc_min_mpath_slots_fast() argument
158 if (nhop_get_metric(wn[x].nh) == metric) { in calc_min_mpath_slots_fast()
165 if (nhop_get_metric(wn[i].nh) != metric) in calc_min_mpath_slots_fast()
199 uint32_t metric) in calc_min_mpath_slots() argument
204 v = calc_min_mpath_slots_fast(wn, num_items, metric, &total); in calc_min_mpath_slots()
249 uint32_t num_slots, uint32_t metric) in compile_nhgrp() argument
260 if (nhop_get_metric(x[i].nh) == metric) in compile_nhgrp()
266 remaining_sum, remaining_slots, metric); in compile_nhgrp()
268 if (nhop_get_metric(x[i].nh) != metric) in compile_nhgrp()
H A Dnhop_ctl.c181 uint32_t metric; in set_nhop_metric_from_info() local
184 metric = info->rti_rmx->rmx_metric; in set_nhop_metric_from_info()
186 metric = RT_DEFAULT_METRIC; in set_nhop_metric_from_info()
188 nhop_set_metric(nh, metric); in set_nhop_metric_from_info()
1072 nhop_set_metric(struct nhop_object *nh, uint32_t metric) in nhop_set_metric() argument
1074 if (metric != RT_WILDCARD_METRIC) in nhop_set_metric()
1075 nh->nh_priv->nh_metric = metric; in nhop_set_metric()
/freebsd/crypto/openssl/doc/man3/
H A DSSL_get_handshake_rtt.pod18 This metric is represented in microseconds (us) as a uint64_t data type.
22 This metric is created by taking two timestamps during the handshake and
37 metric includes processing time on both endpoints, as this is based on TLS
/freebsd/lib/libdevstat/
H A Ddevstat.c94 devstat_metric metric; member
1239 devstat_metric metric; in devstat_compute_statistics() local
1293 while ((metric = (devstat_metric)va_arg(ap, devstat_metric)) != 0) { in devstat_compute_statistics()
1295 if (metric == DSM_NONE) in devstat_compute_statistics()
1298 if (metric >= DSM_MAX) { in devstat_compute_statistics()
1301 metric); in devstat_compute_statistics()
1306 switch (devstat_arg_list[metric].argtype) { in devstat_compute_statistics()
1322 if (devstat_arg_list[metric].argtype == DEVSTAT_ARG_SKIP) in devstat_compute_statistics()
1325 switch (metric) { in devstat_compute_statistics()
1578 "%s: unknown metric %d", __func__, metric); in devstat_compute_statistics()
/freebsd/sys/net80211/
H A Dieee80211_hwmp.c907 int metric = 0; in hwmp_update_transmitter() local
920 metric = ms->ms_pmetric->mpm_metric(ni); in hwmp_update_transmitter()
922 rttran->rt_metric > metric) in hwmp_update_transmitter()
928 rttran->rt_metric, metric); in hwmp_update_transmitter()
930 rttran->rt_metric = metric; in hwmp_update_transmitter()
952 uint32_t metric = 0; in hwmp_recv_preq() local
1023 metric = preq->preq_metric + ms->ms_pmetric->mpm_metric(ni); in hwmp_recv_preq()
1026 metric < rtorig->rt_metric)) { in hwmp_recv_preq()
1029 rtorig->rt_metric = metric; in hwmp_recv_preq()
1277 uint32_t metric = 0; in hwmp_recv_prep() local
[all …]
/freebsd/lib/libifconfig/
H A Dlibifconfig.c406 ifconfig_set_metric(ifconfig_handle_t *h, const char *name, const int metric) in ifconfig_set_metric() argument
412 ifr.ifr_metric = metric; in ifconfig_set_metric()
422 ifconfig_get_metric(ifconfig_handle_t *h, const char *name, int *metric) in ifconfig_get_metric() argument
433 *metric = ifr.ifr_metric; in ifconfig_get_metric()
H A Dlibifconfig.h182 const int metric);
183 int ifconfig_get_metric(ifconfig_handle_t *h, const char *name, int *metric);
/freebsd/usr.bin/netstat/
H A Droute.c215 wid.metric, wid.metric, "Metric", in pr_rthdr()
237 wid.metric = 8; in set_wid()
354 xo_emit("{t:metric/%*lu} ", wid.metric, rtm->rtm_rmx.rmx_metric); in p_rtentry_sysctl()
H A Dcommon.h55 int metric; member
/freebsd/sbin/route/
H A Dkeywords53 metric
/freebsd/share/examples/libifconfig/
H A Dstatus.c464 int metric, mtu; in print_iface() local
471 if (ifconfig_get_metric(lifh, ifa->ifa_name, &metric) == 0) { in print_iface()
472 printf("metric %d ", metric); in print_iface()
/freebsd/contrib/file/magic/Magdir/
H A Dtex39 2 string \000\021 TeX font metric data
42 2 string \000\022 TeX font metric data

12