/openbsd/usr.sbin/rpki-client/ |
H A D | output-ometric.c | 41 ometric_set_int_with_labels(metric, in->certs, in set_common_stats() 46 ometric_set_int_with_labels(metric, in->mfts, in set_common_stats() 53 ometric_set_int_with_labels(metric, in->roas, in set_common_stats() 60 ometric_set_int_with_labels(metric, in->aspas, in set_common_stats() 67 ometric_set_int_with_labels(metric, in->brks, in set_common_stats() 69 ometric_set_int_with_labels(metric, in->crls, in set_common_stats() 71 ometric_set_int_with_labels(metric, in->gbrs, in set_common_stats() 73 ometric_set_int_with_labels(metric, in->taks, in set_common_stats() 76 ometric_set_int_with_labels(metric, in->vrps, in set_common_stats() 81 ometric_set_int_with_labels(metric, in->vaps, in set_common_stats() [all …]
|
/openbsd/usr.sbin/dvmrpd/ |
H A D | report.c | 79 u_int8_t metric, netid_len, prefixlen; in recv_report() local 129 memcpy(&metric, buf, sizeof(metric)); in recv_report() 130 buf += sizeof(metric); in recv_report() 131 len -= sizeof(metric); in recv_report() 136 rr.metric = (metric & METRIC_MASK); in recv_report() 226 u_int8_t metric, netid_len, prefixlen; in rr_list_send() local 263 metric = le->re->metric + INFINITY_METRIC; in rr_list_send() 265 metric = le->re->metric; in rr_list_send() 275 metric = metric | LAST_MASK; in rr_list_send() 277 metric = metric | LAST_MASK; in rr_list_send() [all …]
|
H A D | rde_srt.c | 186 rn->adv_rtr[i].metric = 0; in rr_new_rt() 272 rr.metric = r->cost; in rt_snap() 352 adj_metric = rr->metric; in srt_check_route() 354 adj_metric = rr->metric + iface->metric; in srt_check_route() 377 if (rr->metric < INFINITY_METRIC) { in srt_check_route() 448 if (metric > rn->cost || (metric == rn->cost && in srt_current_forwarder() 453 if (metric < adv->metric || in srt_current_forwarder() 454 (metric == adv->metric && nbr_report < adv->addr.s_addr)) in srt_current_forwarder() 459 adv->metric = metric; in srt_current_forwarder() 607 rr.metric = rn->cost; in flash_update() [all …]
|
/openbsd/regress/usr.sbin/bgpd/integrationtests/ |
H A D | ixp.rdomain1.ok | 5 Origin IGP, metric 0, localpref 100, weight 0, ovs valid, avs unknown, external, valid, best 11 Origin IGP, metric 0, localpref 1, weight 0, ovs invalid, avs unknown, external, valid, best 18 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 24 Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best 31 Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best 38 Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best 45 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 53 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 61 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 69 Origin IGP, metric 0, localpref 1, weight 0, ovs not-found, avs unknown, external, valid, best [all …]
|
H A D | ixp.rdomain2.ok | 5 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 10 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 15 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 22 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 29 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 36 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 41 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 47 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 53 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best 58 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid, best [all …]
|
H A D | mrt-table-mp.ok | 5 Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external 9 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 16 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 21 Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external 25 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 32 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 37 Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external 42 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 49 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 55 Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external [all …]
|
H A D | mrt-table-v2.ok | 5 Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external 9 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 16 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 21 Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external 25 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 32 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 37 Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external 42 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 49 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 55 Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external [all …]
|
H A D | bgpd.maxcomm.rdomain1.conf | 15 match from any max-communities 0 set metric +1 16 match from any max-ext-communities 0 set metric +10 17 match from any max-large-communities 0 set metric +100 19 match from any max-communities 2 set metric +2 20 match from any max-ext-communities 2 set metric +20 21 match from any max-large-communities 2 set metric +200 24 set metric +1000
|
H A D | eval_all.test4.ok | 5 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid 10 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid 15 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid 20 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid 25 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid 30 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid
|
H A D | mrt-table.ok | 5 Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external 9 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 16 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 21 Origin EGP, metric 42, localpref 15, weight 0, ovs not-found, avs unknown, external 25 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external 32 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external
|
H A D | eval_all.test1.ok | 5 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid 10 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid 15 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid 20 Origin IGP, metric 0, localpref 100, weight 0, ovs not-found, avs unknown, external, valid
|
/openbsd/usr.sbin/ripd/ |
H A D | rde.c | 235 rr.metric = INFINITY; in rde_dispatch_imsg() 367 kr.metric = r->metric; in rde_send_change_kroute() 384 kr.metric = r->metric; in rde_send_delete_kroute() 398 u_int8_t metric; in rde_check_route() local 408 metric = MINIMUM(INFINITY, e->metric + iface->cost); in rde_check_route() 426 if (metric < rn->metric) { in rde_check_route() 427 rn->metric = metric; in rde_check_route() 433 metric > rn->metric) { in rde_check_route() 434 rn->metric = metric; in rde_check_route() 440 metric == rn->metric) { in rde_check_route() [all …]
|
H A D | message.c | 128 metric = htonl(rr->metric); in send_triggered_update() 135 ibuf_add(buf, &metric, sizeof(metric)); in send_triggered_update() 154 u_int32_t metric; in send_request() local 196 metric = htonl(entry->rr->metric); in send_request() 206 ibuf_add(buf, &metric, sizeof(metric)); in send_request() 230 u_int32_t metric; in send_response() local 277 metric = htonl(entry->rr->metric); in send_response() 283 metric = htonl(INFINITY); in send_response() 297 ibuf_add(buf, &metric, sizeof(metric)); in send_response() 364 rr.metric = e->metric; in recv_request() [all …]
|
H A D | rde_rib.c | 82 r->metric = INFINITY; in route_action_timeout() 160 rn->metric = kr->metric; in rt_new_kr() 168 rt_new_rr(struct rip_route *e, u_int8_t metric) in rt_new_rr() argument 181 rn->metric = metric; in rt_new_rr() 226 rr.metric = r->metric; in rt_snap() 244 rtctl.metric = r->metric; in rt_dump() 258 rr->metric = INFINITY; in rt_complete() 260 rr->metric = rn->metric; in rt_complete()
|
/openbsd/usr.sbin/eigrpd/ |
H A D | tlv.c | 150 len += sizeof(ri->metric); in len_route_tlv() 221 emetric.metric = htonl(emetric.metric); in gen_route_tlv() 229 metric = ri->metric; in gen_route_tlv() 230 metric.delay = htonl(metric.delay); in gen_route_tlv() 231 metric.bandwidth = htonl(metric.bandwidth); in gen_route_tlv() 232 if (ibuf_add(buf, &metric, sizeof(metric))) in gen_route_tlv() 234 tlvlen += sizeof(metric); in gen_route_tlv() 415 ri->emetric.metric = ntohl(ri->emetric.metric); in tlv_decode_route() 421 memcpy(&ri->metric, buf + offset, sizeof(ri->metric)); in tlv_decode_route() 422 ri->metric.delay = ntohl(ri->metric.delay); in tlv_decode_route() [all …]
|
H A D | rde.c | 650 if (r->metric) in rt_redist_set() 674 ri.metric.tag = 0; in rt_redist_set() 675 ri.metric.flags = 0; in rt_redist_set() 681 ri.emetric.metric = r->emetric.metric; in rt_redist_set() 709 ri.metric = *metric; in rt_summary_set() 758 rtctl.metric.delay = eigrp_real_delay(route->metric.delay); in rt_to_ctl() 761 rtctl.metric.bandwidth = eigrp_real_bandwidth(route->metric.bandwidth); in rt_to_ctl() 762 rtctl.metric.mtu = metric_decode_mtu(route->metric.mtu); in rt_to_ctl() 763 rtctl.metric.hop_count = route->metric.hop_count; in rt_to_ctl() 764 rtctl.metric.reliability = route->metric.reliability; in rt_to_ctl() [all …]
|
H A D | printconf.c | 61 print_redist_metric(struct redist_metric *metric) in print_redist_metric() argument 63 printf(" %u %u %u %u %u", metric->bandwidth, metric->delay, in print_redist_metric() 64 metric->reliability, metric->load, metric->mtu); in print_redist_metric() 103 if (r->metric) { in print_redistribute() 105 print_redist_metric(r->metric); in print_redistribute()
|
H A D | rde_dual.c | 406 route->metric = ri->metric; in route_update_metrics() 418 route->metric.reliability); in route_update_metrics() 434 route->metric.hop_count++; in route_update_metrics() 554 ri.metric.flags |= F_METRIC_ACTIVE; in reply_sia_timer() 596 ri->metric = rn->successor.metric; in rinfo_fill_successor() 678 memset(&rn->successor.metric, 0, in rt_set_successor() 679 sizeof(rn->successor.metric)); in rt_set_successor() 688 rn->successor.metric = successor->metric; in rt_set_successor() 814 ri.metric.flags |= F_METRIC_ACTIVE; in rde_send_query_all() 1098 ri.metric.flags |= F_METRIC_ACTIVE; in rde_last_reply() [all …]
|
/openbsd/usr.sbin/tcpdump/ |
H A D | print-dvmrp.c | 161 int metric, i, width, done; in print_report() local 195 metric = *bp++; in print_report() 196 done = metric & 0x80; in print_report() 197 metric &= 0x7f; in print_report() 199 metric); in print_report() 238 u_char metric; in print_neighbors() local 248 metric = *bp++; in print_neighbors() 256 ipaddr_string(neighbor), metric, thresh); in print_neighbors() 266 u_char metric, thresh, flags; in print_neighbors2() local 279 metric = *bp++; in print_neighbors2() [all …]
|
H A D | print-igrp.c | 47 u_int metric, mtu; in igrp_entry_print() local 61 metric = bandwidth + delay; in igrp_entry_print() 62 if (metric > 0xffffff) in igrp_entry_print() 63 metric = 0xffffff; in igrp_entry_print() 68 igr->igr_rel, igr->igr_ld, metric, in igrp_entry_print()
|
/openbsd/sys/arch/arm64/dev/ |
H A D | ampchwm.c | 117 union metric_hdr metric; in ampchwm_attach() local 151 metric.data, 3); in ampchwm_attach() 169 union metric_hdr *metric, uint16_t *offsetp) in ampchwm_attach_sensors() argument 180 off += sizeof(*metric); in ampchwm_attach_sensors() 182 for (i = 0; i < metric->data_count; i++) { in ampchwm_attach_sensors() 198 sc->sc_metrics[num].sc_sens_unit = metric->unit; in ampchwm_attach_sensors() 199 if (metric->data_size == 0) in ampchwm_attach_sensors() 207 strlcpy(s->desc, metric->label, sizeof(s->desc)); in ampchwm_attach_sensors() 208 if (metric->unit == HWMON_UNIT_CELSIUS) in ampchwm_attach_sensors() 217 off += metric->data_count * 8; in ampchwm_attach_sensors() [all …]
|
/openbsd/gnu/llvm/llvm/utils/lit/tests/Inputs/test-data-micro/ |
H A D | dummy_format.py | 30 metric = lit.Test.IntMetricValue(value) 32 metric = lit.Test.RealMetricValue(value) 35 result.addMetric(key, metric) 44 metric = lit.Test.IntMetricValue(value) 46 metric = lit.Test.RealMetricValue(value) 49 micro_result.addMetric(key, metric)
|
/openbsd/usr.sbin/ospf6d/ |
H A D | ospf6d.c | 540 *metric = depend_ok ? r->metric : in ospf_redistribute() 541 r->metric | MAX_METRIC; in ospf_redistribute() 556 *metric = depend_ok ? r->metric : in ospf_redistribute() 557 r->metric | MAX_METRIC; in ospf_redistribute() 567 *metric = depend_ok ? r->metric : in ospf_redistribute() 568 r->metric | MAX_METRIC; in ospf_redistribute() 579 *metric = depend_ok ? r->metric : in ospf_redistribute() 590 *metric = depend_ok ? r->metric : in ospf_redistribute() 597 *metric = depend_ok ? r->metric : in ospf_redistribute() 804 if (i->metric != xi->metric) in merge_interfaces() [all …]
|
/openbsd/usr.sbin/ospfd/ |
H A D | ospfd.c | 565 *metric = depend_ok ? r->metric : in ospf_redistribute() 566 r->metric | MAX_METRIC; in ospf_redistribute() 581 *metric = depend_ok ? r->metric : in ospf_redistribute() 582 r->metric | MAX_METRIC; in ospf_redistribute() 592 *metric = depend_ok ? r->metric : in ospf_redistribute() 593 r->metric | MAX_METRIC; in ospf_redistribute() 604 *metric = depend_ok ? r->metric : in ospf_redistribute() 614 *metric = depend_ok ? r->metric : in ospf_redistribute() 621 *metric = depend_ok ? r->metric : in ospf_redistribute() 879 if (i->metric != xi->metric) in merge_interfaces() [all …]
|
/openbsd/usr.sbin/map-mbone/ |
H A D | mapper.c | 307 u_char metric, threshold, ncount; in accept_neighbors() local 320 metric = *p++; in accept_neighbors() 356 if (nb_i->metric != nb_n->metric in accept_neighbors() 401 if (metric != nb->metric || threshold != nb->threshold) in accept_neighbors() 413 nb->metric = metric; in accept_neighbors() 442 u_char metric, threshold, ncount, flags; in accept_neighbors2() local 455 metric = *p++; in accept_neighbors2() 497 if (nb_i->metric != nb_n->metric in accept_neighbors2() 545 if (metric != nb->metric || threshold != nb->threshold) in accept_neighbors2() 557 nb->metric = metric; in accept_neighbors2() [all …]
|