Home
last modified time | relevance | path

Searched refs:plen (Results 1 – 25 of 95) sorted by relevance

1234

/f-stack/freebsd/contrib/libsodium/test/default/
H A Dchacha20.c29 size_t plen; in tv() local
40 for (plen = 1U; plen < sizeof out; plen++) { in tv()
43 if (memcmp(part, zero, plen) != 0) { in tv()
50 for (plen = 1U; plen < 66; plen += 3) { in tv()
51 memset(out, (int) (plen & 0xff), sizeof out); in tv()
52 crypto_stream_chacha20(out, plen, nonce, key); in tv()
116 size_t plen; in tv_ietf() local
128 for (plen = 1U; plen < sizeof out; plen++) { in tv_ietf()
131 if (memcmp(part, zero, plen) != 0) { in tv_ietf()
138 for (plen = 1U; plen < 66; plen += 3) { in tv_ietf()
[all …]
/f-stack/tools/ipfw/
H A Dnptv6.c200 int tcmd, flags, plen; in nptv6_create() local
203 plen = 0; in nptv6_create()
218 if (plen > 0) in nptv6_create()
229 if (plen > 0) in nptv6_create()
247 plen = strtol(*av, &p, 10); in nptv6_create()
249 if (*p != '\0' || plen < 8 || plen > 64) in nptv6_create()
252 if (cfg->plen > 0 && cfg->plen != plen) { in nptv6_create()
255 cfg->plen, plen, MAX(plen, cfg->plen)); in nptv6_create()
256 plen = MAX(plen, cfg->plen); in nptv6_create()
258 cfg->plen = plen; in nptv6_create()
[all …]
H A Dnat64clat.c194 uint8_t plen; in nat64clat_create() local
223 plen = strtol(p, NULL, 10); in nat64clat_create()
224 if (ipfw_check_nat64prefix(&prefix, plen) != 0) in nat64clat_create()
230 cfg->plat_plen = plen; in nat64clat_create()
234 cfg->clat_plen = plen; in nat64clat_create()
283 uint8_t plen; in nat64clat_config() local
318 plen = strtol(p, NULL, 10); in nat64clat_config()
319 if (ipfw_check_nat64prefix(&prefix, plen) != 0) in nat64clat_config()
324 cfg->plat_plen = plen; in nat64clat_config()
327 cfg->clat_plen = plen; in nat64clat_config()
H A Dnat64lsn.c326 nat64lsn_apply_mask(int af, void *prefix, uint16_t plen) in nat64lsn_apply_mask() argument
333 mask4.s_addr = htonl(~((1 << (32 - plen)) - 1)); in nat64lsn_apply_mask()
337 n2mask(&mask6, plen); in nat64lsn_apply_mask()
343 nat64lsn_parse_prefix(const char *arg, int af, void *prefix, uint16_t *plen) in nat64lsn_parse_prefix() argument
356 *plen = (uint16_t)strtol(l, &l, 10); in nat64lsn_parse_prefix()
357 if (*l != '\0' || *plen == 0 || (af == AF_INET && *plen > 32) || in nat64lsn_parse_prefix()
358 (af == AF_INET6 && *plen > 96)) in nat64lsn_parse_prefix()
360 nat64lsn_apply_mask(af, prefix, *plen); in nat64lsn_parse_prefix()
/f-stack/freebsd/i386/i386/
H A Dcopyout.c101 int error, i, plen; in cp_slow0() local
110 if (i != plen) in cp_slow0()
166 size_t plen; in copyinstr() local
172 plen < maxlen && !ca.end; uc += ca.alen, plen += ca.alen) { in copyinstr()
187 *lencopied = plen; in copyinstr()
210 size_t plen; in copyin() local
219 plen < len; uc += ca.len, ca.kc += ca.len, plen += ca.len) { in copyin()
224 ca.len = len - plen; in copyin()
245 size_t plen; in copyout() local
254 plen < len; uc += ca.len, ca.kc += ca.len, plen += ca.len) { in copyout()
[all …]
/f-stack/freebsd/contrib/dpdk_rte_lpm/
H A Ddpdk_lpm6.c174 int plen; in pack_parent_rule() local
182 if (plen > 0) { in pack_parent_rule()
200 const struct in6_addr *addr6, int plen) in handle_gu_change() argument
222 abuf, plen, nhidx, ret); in handle_gu_change()
233 "DEL", abuf, plen, ret); in handle_gu_change()
251 int plen; in handle_any_change() local
257 else if (plen == 0) in handle_any_change()
260 ret = handle_gu_change(dd, rc, &addr6, plen); in handle_any_change()
302 int plen; in add_route_cb() local
323 if (plen == 0) { in add_route_cb()
[all …]
H A Ddpdk_lpm.c149 *plen = inet_plen; in get_parent_rule()
156 *plen = 0; in get_parent_rule()
161 const struct in_addr addr, int plen) in handle_gu_change() argument
183 ret = rte_lpm_add(dd->lpm, ip, plen, nhidx); in handle_gu_change()
186 abuf, plen, nhidx, ret); in handle_gu_change()
197 "DEL", abuf, plen, nhidx, ret); in handle_gu_change()
217 int plen; in handle_rtable_change_cb() local
222 if (plen != 0) in handle_rtable_change_cb()
247 int plen, ret; in add_route_cb() local
259 if (plen == 0) { in add_route_cb()
[all …]
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64_translate.c356 switch (plen) { in nat64_embed_ip4()
410 switch (plen) { in nat64_extract_ip4()
434 switch (plen) { in nat64_extract_ip4()
544 int plen; in nat64_fragment6() local
586 if (len > plen) in nat64_fragment6()
587 len = plen; in nat64_fragment6()
593 plen -= len; in nat64_fragment6()
594 if (plen > 0) { in nat64_fragment6()
800 int len, plen; in nat64_icmp_reflect() local
1239 int plen, hlen; in nat64_do_handle_ip4() local
[all …]
H A Dnat64_translate.h150 void nat64_embed_ip4(struct in6_addr *ip6, int plen, in_addr_t ia);
151 in_addr_t nat64_extract_ip4(const struct in6_addr *ip6, int plen);
/f-stack/freebsd/netinet6/
H A Dip6_fastfwd.c99 uint32_t plen; in ip6_tryforward() local
121 plen = ntohs(ip6->ip6_plen); in ip6_tryforward()
122 if (plen == 0) { in ip6_tryforward()
130 if (m->m_pkthdr.len - sizeof(struct ip6_hdr) < plen) { in ip6_tryforward()
135 if (m->m_pkthdr.len > sizeof(struct ip6_hdr) + plen) { in ip6_tryforward()
137 m->m_len = sizeof(struct ip6_hdr) + plen; in ip6_tryforward()
138 m->m_pkthdr.len = sizeof(struct ip6_hdr) + plen; in ip6_tryforward()
140 m_adj(m, sizeof(struct ip6_hdr) + plen - in ip6_tryforward()
H A Dudp6_usrreq.c222 int plen, ulen; in udp6_input() local
251 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6); in udp6_input()
259 ulen = plen; in udp6_input()
260 if (ulen == plen) in udp6_input()
711 u_int32_t ulen, plen; in udp6_output() local
890 plen = sizeof(struct udphdr) + ulen; in udp6_output()
915 if (cscov >= plen) in udp6_output()
923 } else if (plen <= 0xffff) in udp6_output()
924 udp6->uh_ulen = htons((u_short)plen); in udp6_output()
933 ip6->ip6_plen = htons((u_short)plen); in udp6_output()
[all …]
/f-stack/freebsd/netpfil/ipfw/pmod/
H A Dtcpmod.c125 int hlen, plen, proto; in tcpmod_ipv6_setmss() local
143 plen = (*mp)->m_pkthdr.len - hlen; in tcpmod_ipv6_setmss()
146 if (hlen <= sizeof(struct tcphdr) || hlen > plen) in tcpmod_ipv6_setmss()
158 int hlen, plen; in tcpmod_ipv4_setmss() local
163 plen = (*mp)->m_pkthdr.len - hlen; in tcpmod_ipv4_setmss()
166 if (hlen <= sizeof(struct tcphdr) || hlen > plen) in tcpmod_ipv4_setmss()
/f-stack/dpdk/lib/librte_ipsec/
H A Desp_outb.c29 uint32_t pofs, uint32_t plen) in sop_ciph_auth_prepare() argument
46 uint32_t pofs, uint32_t plen) in sop_aead_prepare() argument
85 sop_aead_prepare(sop, sa, icv, hlen, plen); in outb_cop_prepare()
124 plen = mb->pkt_len - l2len; in outb_tun_pkt_prepare()
127 clen = plen + sizeof(*espt); in outb_tun_pkt_prepare()
131 pdlen = clen - plen; in outb_tun_pkt_prepare()
292 plen = mb->pkt_len - uhlen; in outb_trs_pkt_prepare()
298 clen = plen + sizeof(*espt); in outb_trs_pkt_prepare()
302 pdlen = clen - plen; in outb_trs_pkt_prepare()
417 uint32_t plen, void *iv) in outb_cpu_crypto_prepare() argument
[all …]
H A Desp_inb.c29 uint32_t pofs, uint32_t plen) in sop_ciph_auth_prepare() argument
34 sop->auth.data.length = plen - sa->ctp.auth.length; in sop_ciph_auth_prepare()
46 uint32_t pofs, uint32_t plen) in sop_aead_prepare() argument
79 sop_aead_prepare(sop, sa, icv, pofs, plen); in inb_cop_prepare()
110 uint32_t *pofs, uint32_t plen, void *iv) in inb_cpu_crypto_prepare() argument
137 clen = plen - sa->ctp.auth.length; in inb_cpu_crypto_prepare()
223 uint32_t clen, icv_len, icv_ofs, plen; in inb_prepare() local
227 plen = mb->pkt_len; in inb_prepare()
228 plen = plen - hlen; in inb_prepare()
231 clen = plen - sa->ctp.cipher.length; in inb_prepare()
[all …]
H A Diph.h42 update_trs_l3hdr(const struct rte_ipsec_sa *sa, void *p, uint32_t plen, in update_trs_l3hdr() argument
54 v4h->total_length = rte_cpu_to_be_16(plen - l2len); in update_trs_l3hdr()
97 v6h->payload_len = rte_cpu_to_be_16(plen - l2len - in update_trs_l3hdr()
244 const void *inh, uint32_t plen, uint32_t l2len, rte_be16_t pid) in update_tun_outb_l3hdr() argument
254 v4h->total_length = rte_cpu_to_be_16(plen - l2len); in update_tun_outb_l3hdr()
258 v6h->payload_len = rte_cpu_to_be_16(plen - l2len - in update_tun_outb_l3hdr()
H A Dmisc.h49 uint32_t k, n, plen; in mbuf_get_seg_ofs() local
52 plen = mb->pkt_len; in mbuf_get_seg_ofs()
55 if (n == plen) { in mbuf_get_seg_ofs()
57 n = n + rte_pktmbuf_data_len(ms) - plen; in mbuf_get_seg_ofs()
/f-stack/freebsd/netinet/
H A Dsctp_auth.c1366 uint16_t plen, ptype; in sctp_auth_get_cookie_params() local
1447 offset += SCTP_SIZE32(plen); in sctp_auth_get_cookie_params()
1775 uint16_t ptype, plen; in sctp_validate_init_auth_params() local
1788 if (offset + plen > limit) { in sctp_validate_init_auth_params()
1805 plen); in sctp_validate_init_auth_params()
1836 if (plen > sizeof(store)) { in sctp_validate_init_auth_params()
1841 plen); in sctp_validate_init_auth_params()
1864 plen); in sctp_validate_init_auth_params()
1885 offset += SCTP_SIZE32(plen); in sctp_validate_init_auth_params()
1954 int plen; in sctp_initialize_auth_params() local
[all …]
/f-stack/freebsd/netgraph/
H A Dng_checksum.c311 int hlen, plen; in checksum_ipv4() local
323 plen = ntohs(ip4->ip_len); in checksum_ipv4()
361 ip4->ip_dst.s_addr, htons(ip4->ip_p + plen - hlen)); in checksum_ipv4()
382 ip4->ip_dst.s_addr, htons(ip4->ip_p + plen - hlen)); in checksum_ipv4()
386 l3_offset + plen, l3_offset + hlen); in checksum_ipv4()
421 int hlen, plen; in checksum_ipv6() local
434 plen = ntohs(ip6->ip6_plen) + hlen; in checksum_ipv6()
436 if (m->m_pkthdr.len < l3_offset + plen) in checksum_ipv6()
486 th->th_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0); in checksum_ipv6()
506 uh->uh_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0); in checksum_ipv6()
[all …]
H A Dng_pipe.c110 #define FIFO_VTIME_SORT(plen) \ argument
112 ngp_f->vtime.tv_usec = now->tv_usec + ((uint64_t) (plen) \
598 int hash, plen; in ngp_rcvdata() local
615 plen = NGI_M(item)->m_pkthdr.len; in ngp_rcvdata()
621 hinfo->stats.out_disc_octets += plen; in ngp_rcvdata()
624 hinfo->stats.fwd_octets += plen; in ngp_rcvdata()
740 int plen, error = 0; in pipe_dequeue() local
861 plen = m->m_pkthdr.len; in pipe_dequeue()
863 hinfo->run.qout_octets -= plen; in pipe_dequeue()
872 hinfo->stats.out_disc_octets += plen; in pipe_dequeue()
[all …]
/f-stack/freebsd/netgraph/netflow/
H A Dnetflow.c340 fle->f.bytes = plen; in hash_insert()
359 int plen; in hash_insert() local
365 fle->f.dst_mask = plen; in hash_insert()
378 int plen; in hash_insert() local
414 fle6->f.bytes = plen; in hash6_insert()
433 int plen; in hash6_insert() local
452 int plen; in hash6_insert() local
655 int hlen, plen; in ng_netflow_flow_add() local
737 fle->f.bytes += plen; in ng_netflow_flow_add()
785 int plen; in ng_netflow_flow6_add() local
[all …]
/f-stack/app/redis-5.0.5/deps/linenoise/
H A Dlinenoise.c144 size_t plen; /* Prompt length. */ member
478 if (hintsCallback && plen+l->len < l->cols) { in refreshShowHints()
504 size_t plen = strlen(l->prompt); in refreshSingleLine() local
511 while((plen+pos) >= l->cols) { in refreshSingleLine()
516 while (plen+len > l->cols) { in refreshSingleLine()
528 refreshShowHints(&ab,l,plen); in refreshSingleLine()
545 int plen = strlen(l->prompt); in refreshMultiLine() local
583 refreshShowHints(&ab,l,plen); in refreshMultiLine()
589 (l->pos+plen) % l->cols == 0) in refreshMultiLine()
611 col = (plen+(int)l->pos) % (int)l->cols; in refreshMultiLine()
[all …]
/f-stack/app/redis-5.0.5/src/
H A Dlistpack.c143 unsigned long plen = 0; in lpStringToInt64() local
147 if (plen == slen) in lpStringToInt64()
158 p++; plen++; in lpStringToInt64()
161 if (plen == slen) in lpStringToInt64()
168 p++; plen++; in lpStringToInt64()
176 while (plen < slen && p[0] >= '0' && p[0] <= '9') { in lpStringToInt64()
185 p++; plen++; in lpStringToInt64()
189 if (plen < slen) in lpStringToInt64()
H A Dutil.c362 size_t plen = 0; in string2ll() local
367 if (plen == slen) in string2ll()
380 p++; plen++; in string2ll()
383 if (plen == slen) in string2ll()
390 p++; plen++; in string2ll()
396 while (plen < slen && p[0] >= '0' && p[0] <= '9') { in string2ll()
405 p++; plen++; in string2ll()
409 if (plen < slen) in string2ll()
/f-stack/tools/ifconfig/
H A Daf_inet6.c338 in6_getprefix(const char *plen, int which) argument
342 int len = atoi(plen);
345 errx(1, "%s: bad value", plen);
407 int byte, bit, plen = 0; local
409 for (byte = 0; byte < size; byte++, plen += 8)
413 return (plen);
414 for (bit = 7; bit != 0; bit--, plen++)
424 return (plen);
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_log.c321 size_t nlen, plen; local
349 plen = ngx_strlen(prefix);
354 plen = ngx_strlen(prefix);
356 plen = 0;
360 if (plen) {
361 name = malloc(plen + nlen + 2);
366 p = ngx_cpymem(name, prefix, plen);

1234