Searched refs:packlen (Results 1 - 13 of 13) sorted by relevance

/freebsd-current/sys/netinet/
H A Daccf_dns.c102 unsigned long packlen; local
114 GET16(p, packlen);
115 if (packlen + 2 > q.len)
/freebsd-current/crypto/openssl/crypto/
H A Dpacket.c237 size_t packlen = pkt->written - sub->pwritten; local
239 if (packlen == 0
243 if (packlen == 0
265 && !put_value(&buf[sub->packet_len], packlen,
269 && (packlen != 0
272 size_t tmplen = packlen;
277 if (!WPACKET_put_bytes__(pkt, packlen, numlenbytes))
279 if (packlen > 0x7f) {
/freebsd-current/usr.sbin/traceroute/
H A Dtraceroute.c308 int packlen; /* total length of packet */ variable
711 packlen = minpacket;
713 packlen = 40;
719 packlen = str2val(argv[optind + 1],
742 protlen = packlen - sizeof(*outip) - optlen;
743 if ((proto->num == IPPROTO_SCTP) && (packlen & 3)) {
749 outip = (struct ip *)malloc((unsigned)packlen);
754 memset((char *)outip, 0, packlen);
763 outip->ip_len = htons(packlen);
824 if (setsockopt(sndsock, SOL_SOCKET, SO_SNDBUF, (char *)&packlen,
[all...]
/freebsd-current/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha1_hw.c137 unsigned int frag, last, packlen, i; local
158 packlen = 5 + 16 + ((frag + 20 + 16) & -16);
171 ciph_d[i].out = ciph_d[i - 1].out + packlen;
719 unsigned int frag, last, packlen, inp_len; local
752 packlen = 5 + 16 + ((frag + 20 + 16) & -16);
753 packlen = (packlen << n4x) - packlen;
754 packlen += 5 + 16 + ((last + 20 + 16) & -16);
759 ctx->multiblock_aad_packlen = packlen;
[all...]
H A Dcipher_aes_cbc_hmac_sha256_hw.c141 unsigned int frag, last, packlen, i; local
162 packlen = 5 + 16 + ((frag + 32 + 16) & -16);
175 ciph_d[i].out = ciph_d[i - 1].out + packlen;
772 unsigned int frag, last, packlen, inp_len; local
804 packlen = 5 + 16 + ((frag + 32 + 16) & -16);
805 packlen = (packlen << n4x) - packlen;
806 packlen += 5 + 16 + ((last + 32 + 16) & -16);
811 ctx->multiblock_aad_packlen = packlen;
[all...]
/freebsd-current/usr.sbin/rtadvd/
H A Dconfig.c1326 size_t packlen, lladdroptlen = 0; local
1343 packlen = sizeof(struct nd_router_advert);
1352 packlen += lladdroptlen;
1355 packlen += sizeof(struct nd_opt_prefix_info) * rai->rai_pfxs;
1357 packlen += sizeof(struct nd_opt_mtu);
1360 packlen += sizeof(struct nd_opt_route_info) +
1366 packlen += sizeof(struct nd_opt_rdnss);
1368 packlen += sizeof(rdna->ra_dns);
1373 packlen += sizeof(struct nd_opt_dnssl);
1382 packlen
[all...]
/freebsd-current/crypto/openssh/
H A Dpacket.c206 u_int packlen; member in struct:session_state
1441 if (state->packlen == 0) {
1444 state->packlen = PEEK_U32(cp);
1445 if (state->packlen < 4 + 1 ||
1446 state->packlen > PACKET_MAX_SIZE)
1449 need = state->packlen + 4;
1454 state->packlen)) != 0 ||
1463 state->packlen = 0;
1499 if (aadlen && state->packlen == 0) {
1501 &state->packlen, stat
[all...]
/freebsd-current/crypto/openssl/crypto/evp/
H A De_aes_cbc_hmac_sha1.c174 unsigned int frag, last, packlen, i, x4 = 4 * n4x, minblocks, processed = local
195 packlen = 5 + 16 + ((frag + 20 + 16) & -16);
208 ciph_d[i].out = ciph_d[i - 1].out + packlen;
847 unsigned int frag, last, packlen, inp_len; local
882 packlen = 5 + 16 + ((frag + 20 + 16) & -16);
883 packlen = (packlen << n4x) - packlen;
884 packlen += 5 + 16 + ((last + 20 + 16) & -16);
888 return (int)packlen;
[all...]
H A De_aes_cbc_hmac_sha256.c169 unsigned int frag, last, packlen, i, x4 = 4 * n4x, minblocks, processed = local
191 packlen = 5 + 16 + ((frag + 32 + 16) & -16);
204 ciph_d[i].out = ciph_d[i - 1].out + packlen;
828 unsigned int frag, last, packlen, inp_len; local
866 packlen = 5 + 16 + ((frag + 32 + 16) & -16);
867 packlen = (packlen << n4x) - packlen;
868 packlen += 5 + 16 + ((last + 32 + 16) & -16);
872 return (int)packlen;
[all...]
/freebsd-current/usr.sbin/rtsold/
H A Drtsold.c514 size_t packlen = sizeof(struct nd_router_solicit), lladdroptlen = 0; local
523 packlen += lladdroptlen;
524 ifi->rs_datalen = packlen;
527 if ((buf = malloc(packlen)) == NULL) {
/freebsd-current/crypto/openssl/ssl/record/
H A Drec_layer_s3.c444 size_t packlen; local
454 packlen = EVP_CIPHER_CTX_ctrl(s->enc_write_ctx,
459 packlen *= 8;
461 packlen *= 4;
463 if (!ssl3_setup_write_buffer(s, 1, packlen)) {
509 packlen = (size_t)packleni;
510 if (packleni <= 0 || packlen > wb->len) { /* never happens */
532 wb->left = packlen;
/freebsd-current/sbin/ping/
H A Dping6.c276 int almost_done, ch, hold, packlen, preload, optval, error; local
751 packlen = 2048 + IP6LEN + ICMP6ECHOLEN + EXTRA;
753 packlen = datalen + IP6LEN + ICMP6ECHOLEN + EXTRA;
758 packlen = 2048 + IP6LEN + ICMP6ECHOLEN + EXTRA;
761 if (!(packet = (u_char *)malloc((u_int)packlen)))
764 for (i = ICMP6ECHOLEN; i < packlen; ++i)
1173 iov[0].iov_len = packlen;
/freebsd-current/crypto/openssl/apps/
H A Dspeed.c3677 int packlen; local
3690 packlen = EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_TLS1_1_MULTIBLOCK_AAD,
3693 if (packlen > 0) {

Completed in 309 milliseconds