/external/tcpdump/ |
D | print-mobility.c | 207 unsigned mhlen, hlen; in mobility_print() local 244 hlen = IP6M_MINLEN; in mobility_print() 248 hlen = IP6M_MINLEN; in mobility_print() 250 ND_TCHECK_32BITS(&bp[hlen + 4]); in mobility_print() 253 EXTRACT_32BITS(&bp[hlen]), in mobility_print() 254 EXTRACT_32BITS(&bp[hlen + 4]))); in mobility_print() 256 hlen += 8; in mobility_print() 262 hlen = IP6M_MINLEN; in mobility_print() 264 ND_TCHECK_32BITS(&bp[hlen + 4]); in mobility_print() 267 EXTRACT_32BITS(&bp[hlen]), in mobility_print() [all …]
|
D | print-sl.c | 131 u_int hlen; in sliplink_print() local 176 hlen = IP_HL(ip); in sliplink_print() 177 hlen += TH_OFF((const struct tcphdr *)&((const int *)ip)[hlen]); in sliplink_print() 178 lastlen[dir][lastconn] = length - (hlen << 2); in sliplink_print() 232 register u_int flags, hlen; in compressed_sl_print() local 272 hlen = IP_HL(ip); in compressed_sl_print() 273 hlen += TH_OFF((const struct tcphdr *)&((const int32_t *)ip)[hlen]); in compressed_sl_print() 274 lastlen[dir][lastconn] = length - (hlen << 2); in compressed_sl_print()
|
D | print-dccp.c | 276 u_int hlen; in dccp_print() local 311 hlen = dh->dccph_doff * 4; in dccp_print() 326 ND_PRINT((ndo, " %d", len - hlen)); in dccp_print() 327 if (hlen > len) { in dccp_print() 329 hlen, len)); in dccp_print() 489 if (hlen > fixed_hdrlen){ in dccp_print() 494 hlen -= fixed_hdrlen; in dccp_print() 496 optlen = dccp_print_option(ndo, cp, hlen); in dccp_print() 499 if (hlen <= optlen) in dccp_print() 501 hlen -= optlen; in dccp_print() [all …]
|
D | print-tcp.c | 167 register u_int hlen; in tcp_print() local 219 hlen = TH_OFF(tp) * 4; in tcp_print() 221 if (hlen < sizeof(*tp)) { in tcp_print() 223 length - hlen, hlen, (unsigned long)sizeof(*tp))); in tcp_print() 233 ND_PRINT((ndo, "tcp %d", length - hlen)); in tcp_print() 234 if (hlen > length) { in tcp_print() 236 hlen, length)); in tcp_print() 362 if (hlen > length) { in tcp_print() 364 hlen, length)); in tcp_print() 400 length -= hlen; in tcp_print() [all …]
|
D | print-icmp.c | 344 u_int hlen, dport, mtu, obj_tlen, obj_class_num, obj_ctype; in icmp_print() local 381 hlen = IP_HL(oip) * 4; in icmp_print() 382 ouh = (const struct udphdr *)(((const u_char *)oip) + hlen); in icmp_print() 624 hlen = plen - ICMP_EXTD_MINLEN; in icmp_print() 625 if (ND_TTEST2(ext_dp->icmp_ext_version_res, hlen)) { in icmp_print() 627 vec[0].len = hlen; in icmp_print() 631 hlen)); in icmp_print() 634 hlen -= 4; /* subtract common header size */ in icmp_print() 637 while (hlen > sizeof(struct icmp_mpls_ext_object_header_t)) { in icmp_print() 652 … hlen-=sizeof(struct icmp_mpls_ext_object_header_t); /* length field includes tlv header */ in icmp_print() [all …]
|
D | print-ip.c | 541 u_int hlen; in ip_print() local 563 hlen = IP_HL(ipds->ip) * 4; in ip_print() 564 if (hlen < sizeof (struct ip)) { in ip_print() 565 ND_PRINT((ndo, "bad-hlen %u", hlen)); in ip_print() 573 if (ipds->len < hlen) { in ip_print() 596 ipds->len -= hlen; in ip_print() 639 if ((hlen - sizeof(struct ip)) > 0) { in ip_print() 641 ip_optprint(ndo, (const u_char *)(ipds->ip + 1), hlen - sizeof(struct ip)); in ip_print() 645 if (!ndo->ndo_Kflag && (const u_char *)ipds->ip + hlen <= ndo->ndo_snapend) { in ip_print() 647 vec[0].len = hlen; in ip_print() [all …]
|
/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_client_write.c | 580 size_t rlen, hlen, clen; in tls_write_client_certificate_verify() local 622 hlen = SHA256_MAC_LEN; in tls_write_client_certificate_verify() 624 crypto_hash_finish(conn->verify.sha256_cert, hpos, &hlen) < in tls_write_client_certificate_verify() 647 os_memmove(hash + 19, hash, hlen); in tls_write_client_certificate_verify() 648 hlen += 19; in tls_write_client_certificate_verify() 654 hlen = MD5_MAC_LEN; in tls_write_client_certificate_verify() 656 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) { in tls_write_client_certificate_verify() 667 hlen = SHA1_MAC_LEN; in tls_write_client_certificate_verify() 669 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { in tls_write_client_certificate_verify() 677 hlen += MD5_MAC_LEN; in tls_write_client_certificate_verify() [all …]
|
D | tlsv1_common.c | 344 size_t hlen; in tlsv12_key_x_server_params_hash() local 351 hlen = SHA256_MAC_LEN; in tlsv12_key_x_server_params_hash() 355 hlen = 48; in tlsv12_key_x_server_params_hash() 359 hlen = 64; in tlsv12_key_x_server_params_hash() 370 if (crypto_hash_finish(ctx, hash, &hlen) < 0) in tlsv12_key_x_server_params_hash() 373 return hlen; in tlsv12_key_x_server_params_hash() 384 size_t hlen; in tls_key_x_server_params_hash() local 395 hlen = MD5_MAC_LEN; in tls_key_x_server_params_hash() 396 if (crypto_hash_finish(ctx, hash, &hlen) < 0) in tls_key_x_server_params_hash() 398 hpos += hlen; in tls_key_x_server_params_hash() [all …]
|
D | tlsv1_server_write.c | 567 int hlen; in tls_write_server_key_exchange() local 571 hlen = tlsv12_key_x_server_params_hash( in tls_write_server_key_exchange() 587 if (hlen < 0 || end - pos < 2) { in tls_write_server_key_exchange() 609 hlen += 19; in tls_write_server_key_exchange() 620 hlen = tls_key_x_server_params_hash( in tls_write_server_key_exchange() 626 if (hlen < 0) { in tls_write_server_key_exchange() 633 hash, hlen); in tls_write_server_key_exchange() 637 hash[hlen - 1] ^= 0x80; in tls_write_server_key_exchange() 657 crypto_private_key_sign_pkcs1(conn->cred->key, hash, hlen, in tls_write_server_key_exchange() 835 size_t rlen, hlen; in tls_write_server_finished() local [all …]
|
D | tlsv1_server_read.c | 890 size_t hlen; in tls_process_certificate_verify() local 986 hlen = SHA256_MAC_LEN; in tls_process_certificate_verify() 988 crypto_hash_finish(conn->verify.sha256_cert, hpos, &hlen) < in tls_process_certificate_verify() 999 hlen = MD5_MAC_LEN; in tls_process_certificate_verify() 1001 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) { in tls_process_certificate_verify() 1012 hlen = SHA1_MAC_LEN; in tls_process_certificate_verify() 1014 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { in tls_process_certificate_verify() 1022 hlen += MD5_MAC_LEN; in tls_process_certificate_verify() 1028 wpa_hexdump(MSG_MSGDUMP, "TLSv1: CertificateVerify hash", hash, hlen); in tls_process_certificate_verify() 1031 hash, hlen, pos, end - pos, &alert) < 0) { in tls_process_certificate_verify() [all …]
|
D | tlsv1_client_read.c | 728 int hlen; in tlsv1_process_diffie_hellman() local 753 hlen = tlsv12_key_x_server_params_hash( in tlsv1_process_diffie_hellman() 763 hlen = tls_key_x_server_params_hash( in tlsv1_process_diffie_hellman() 769 if (hlen < 0) in tlsv1_process_diffie_hellman() 772 hash, hlen); in tlsv1_process_diffie_hellman() 776 hash, hlen, pos, end - pos, in tlsv1_process_diffie_hellman() 1315 size_t left, len, hlen; in tls_process_server_finished() local 1374 hlen = SHA256_MAC_LEN; in tls_process_server_finished() 1376 crypto_hash_finish(conn->verify.sha256_server, hash, &hlen) in tls_process_server_finished() 1387 hlen = MD5_MAC_LEN; in tls_process_server_finished() [all …]
|
D | tlsv1_record.c | 282 size_t i, rlen, hlen; in tlsv1_record_receive() local 451 hlen = sizeof(hash); in tlsv1_record_receive() 452 if (crypto_hash_finish(hmac, hash, &hlen) < 0) { in tlsv1_record_receive() 458 if (hlen != rl->hash_size || in tlsv1_record_receive() 459 os_memcmp_const(hash, out_data + plen, hlen) != 0 || in tlsv1_record_receive()
|
/external/tcpdump/tests/ |
D | isis_4-v.out | 2 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 22 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 42 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 62 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 82 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 102 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 122 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 142 p2p IIH, hlen: 20, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 162 L1 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 179 L2 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) [all …]
|
D | isis_3-v.out | 2 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 20 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 38 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 56 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 74 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 94 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 114 L2 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 134 L2 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 154 L2 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 162 L2 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) [all …]
|
D | isis_2-v.out | 2 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 20 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 38 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 56 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 74 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 92 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 112 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 132 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 152 L1 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 170 L1 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) [all …]
|
D | isis_1-v.out | 2 L1 CSNP, hlen: 33, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 11 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 31 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 51 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 71 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 91 L1 CSNP, hlen: 33, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 100 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 120 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 140 L1 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) 163 L1 Lan IIH, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (0), max-area: 3 (0) [all …]
|
D | isis_infloop-v.out | 4 L1 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (6), max-area: 7 (7) 11 L1 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (6), max-area: 7 (7) 18 L1 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (6), max-area: 7 (7) 25 L1 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (6), max-area: 7 (7) 32 L1 LSP, hlen: 27, v: 1, pdu-v: 1, sys-id-len: 6 (6), max-area: 7 (7)
|
/external/wpa_supplicant_8/src/ap/ |
D | iapp.c | 306 int len, hlen; in iapp_receive_udp() local 336 hlen = be_to_host16(hdr->length); in iapp_receive_udp() 341 be_to_host16(hdr->identifier), hlen); in iapp_receive_udp() 347 if (hlen > len) { in iapp_receive_udp() 349 hlen, len); in iapp_receive_udp() 352 if (hlen < len) { in iapp_receive_udp() 354 len - hlen); in iapp_receive_udp() 355 len = hlen; in iapp_receive_udp()
|
/external/iptables/libxtables/ |
D | xtoptions.c | 527 cb->val.hlen = (afinfo->family == NFPROTO_IPV4) ? 32 : 128; in xtopt_parse_host() 686 cb->val.hlen = xtables_ipmask_to_cidr(&cb->val.hmask.in); in xtopt_parse_mask() 689 cb->val.hlen = xtables_ip6mask_to_cidr(&cb->val.hmask.in6); in xtopt_parse_mask() 706 cb->val.hlen = (afinfo->family == NFPROTO_IPV4) ? 32 : 128; in xtopt_parse_plen() 707 if (!xtables_strtoui(cb->arg, NULL, &prefix_len, 0, cb->val.hlen)) { in xtopt_parse_plen() 716 cb->ext_name, entry->name, 0, cb->val.hlen); in xtopt_parse_plen() 718 cb->val.hlen = prefix_len; in xtopt_parse_plen() 735 if (cb->val.hlen == 0) { in xtopt_parse_plenmask() 737 } else if (cb->val.hlen <= 32) { in xtopt_parse_plenmask() 738 mask[0] <<= 32 - cb->val.hlen; in xtopt_parse_plenmask() [all …]
|
/external/openssh/ |
D | ssh-rsa.c | 310 size_t rsasize = 0, oidlen = 0, hlen = 0; in openssh_RSA_verify() local 318 hlen = ssh_digest_bytes(hash_alg); in openssh_RSA_verify() 319 if (hashlen != hlen) { in openssh_RSA_verify() 338 if (len < 0 || (size_t)len != hlen + oidlen) { in openssh_RSA_verify() 343 hashmatch = timingsafe_bcmp(decrypted + oidlen, hash, hlen) == 0; in openssh_RSA_verify()
|
/external/iputils/ |
D | ping.c | 99 static void pr_options(unsigned char * cp, int hlen); 789 int hlen; in parse_reply() local 799 hlen = ip->ihl*4; in parse_reply() 800 if (cc < hlen + 8 || ip->ihl < 5) { in parse_reply() 808 optlen = hlen - sizeof(struct iphdr); in parse_reply() 810 hlen = 0; in parse_reply() 829 cc -= hlen; in parse_reply() 830 icp = (struct icmphdr *)(buf + hlen); in parse_reply() 1133 void pr_options(unsigned char * cp, int hlen) in pr_options() argument 1141 totlen = hlen-sizeof(struct iphdr); in pr_options() [all …]
|
/external/curl/lib/ |
D | content_encoding.c | 470 ssize_t hlen; in gzip_unencode_write() local 472 switch(check_gzip_header((unsigned char *) buf, nbytes, &hlen)) { in gzip_unencode_write() 474 z->next_in = (Bytef *) buf + hlen; in gzip_unencode_write() 475 z->avail_in = (uInt) (nbytes - hlen); in gzip_unencode_write() 508 ssize_t hlen; in gzip_unencode_write() local 517 switch(check_gzip_header(z->next_in, z->avail_in, &hlen)) { in gzip_unencode_write() 522 z->next_in = (Bytef *) buf + hlen + nbytes - z->avail_in; in gzip_unencode_write() 523 z->avail_in = (uInt) (z->avail_in - hlen); in gzip_unencode_write()
|
/external/iptables/extensions/ |
D | libip6t_DNPT.c | 41 npt->src_pfx_len = cb->val.hlen; in DNPT_parse() 45 npt->dst_pfx_len = cb->val.hlen; in DNPT_parse()
|
D | libip6t_SNPT.c | 41 npt->src_pfx_len = cb->val.hlen; in SNPT_parse() 45 npt->dst_pfx_len = cb->val.hlen; in SNPT_parse()
|
/external/wpa_supplicant_8/src/common/ |
D | dhcp.h | 27 u8 hlen; member 46 u8 hlen; member
|