Home
last modified time | relevance | path

Searched refs:complen (Results 1 – 11 of 11) sorted by relevance

/openbsd/src/usr.sbin/bgpd/
Dflowspec.c299 int complen, t; in flowspec_get_component() local
305 complen = flowspec_next_component(flow, flowlen, is_v6, &t); in flowspec_get_component()
306 if (complen == -1) in flowspec_get_component()
313 flow += complen; in flowspec_get_component()
314 flowlen -= complen; in flowspec_get_component()
318 *len = complen - 1; in flowspec_get_component()
335 int complen, rv; in flowspec_get_addr() local
343 &comp, &complen); in flowspec_get_addr()
350 if (extract_prefix(comp + 1, complen - 1, &addr->v4, comp[0], in flowspec_get_addr()
366 if (extract_prefix(comp + 2, complen - 2, buf, xlen, in flowspec_get_addr()
[all …]
Dprintconf.c519 int complen, off = 0; in print_flowspec_list() local
522 &comp, &complen) != 1) in print_flowspec_list()
526 fmt = flowspec_fmt_num_op(comp, complen, &off); in print_flowspec_list()
532 fmt = flowspec_fmt_num_op(comp, complen, &off); in print_flowspec_list()
544 int complen, off = 0; in print_flowspec_flags() local
562 &comp, &complen) != 1) in print_flowspec_flags()
567 fmt = flowspec_fmt_bin_op(comp, complen, &off, flags); in print_flowspec_flags()
573 fmt = flowspec_fmt_bin_op(comp, complen, &off, flags); in print_flowspec_flags()
Dparse.y141 uint16_t complen[FLOWSPEC_TYPE_MAX]; member
5691 len += ctx->complen[i] + 1; in flow_to_flowspec()
5702 ctx->complen[i]); in flow_to_flowspec()
5704 ctx->complen[i]); in flow_to_flowspec()
5705 len += ctx->complen[i]; in flow_to_flowspec()
5726 int complen, l; in push_prefix() local
5740 complen = PREFIX_SIZE(len); in push_prefix()
5745 complen = PREFIX_SIZE(len) + 1; in push_prefix()
5752 comp = malloc(complen); in push_prefix()
5762 memcpy(comp + l, data, complen - l); in push_prefix()
[all …]
/openbsd/src/usr.sbin/smtpd/
Dqueue_backend.c376 size_t complen; in queue_envelope_dump_buffer() local
387 complen = compress_chunk(evp, evplen, compbuf, sizeof compbuf); in queue_envelope_dump_buffer()
388 if (complen == 0) in queue_envelope_dump_buffer()
391 evplen = complen; in queue_envelope_dump_buffer()
413 size_t complen; in queue_envelope_load_buffer() local
429 complen = uncompress_chunk(evp, evplen, compbuf, sizeof compbuf); in queue_envelope_load_buffer()
430 if (complen == 0) in queue_envelope_load_buffer()
433 evplen = complen; in queue_envelope_load_buffer()
/openbsd/src/usr.sbin/bgpctl/
Doutput.c508 int complen, off = 0; in print_flowspec_list() local
511 &comp, &complen) != 1) in print_flowspec_list()
515 fmt = flowspec_fmt_num_op(comp, complen, &off); in print_flowspec_list()
521 fmt = flowspec_fmt_num_op(comp, complen, &off); in print_flowspec_list()
533 int complen, off = 0; in print_flowspec_flags() local
551 &comp, &complen) != 1) in print_flowspec_flags()
556 fmt = flowspec_fmt_bin_op(comp, complen, &off, flags); in print_flowspec_flags()
562 fmt = flowspec_fmt_bin_op(comp, complen, &off, flags); in print_flowspec_flags()
Dbgpctl.c1929 int complen, l; in push_prefix() local
1935 complen = PREFIX_SIZE(len); in push_prefix()
1940 complen = PREFIX_SIZE(len) + 1; in push_prefix()
1946 comp = malloc(complen); in push_prefix()
1954 memcpy(comp + l, data, complen - l); in push_prefix()
1956 r->flow.complen[type] = complen; in push_prefix()
1985 len += r->flow.complen[i] + 1; in res_to_flowspec()
2003 r->flow.complen[i]); in res_to_flowspec()
2005 r->flow.complen[i]); in res_to_flowspec()
2006 len += r->flow.complen[i]; in res_to_flowspec()
Dparser.c1507 int len, complen; in push_numop() local
1531 complen = r->flow.complen[type]; in push_numop()
1532 comp = realloc(r->flow.components[type], complen + len + 1); in push_numop()
1536 comp[complen++] = flag; in push_numop()
1537 memcpy(comp + complen, data, len); in push_numop()
1538 complen += len; in push_numop()
1539 r->flow.complen[type] = complen; in push_numop()
Dparser.h90 uint16_t complen[FLOWSPEC_TYPE_MAX]; member
/openbsd/src/gnu/usr.bin/gcc/gcc/
Dgcc.c1114 size_t complen = arglen > optlen ? optlen : arglen; local
1120 if (!strncmp (argv[i], option_map[j].name, complen))
DChangeLog.06533 complen to size_t.
/openbsd/src/gnu/gcc/gcc/
Dgcc.c1240 size_t complen = arglen > optlen ? optlen : arglen; in translate_options() local
1246 if (!strncmp (argv[i], option_map[j].name, complen)) in translate_options()