/external/tcpdump/ |
D | print-mobility.c | 175 int mhlen, hlen, type; in mobility_print() local 207 hlen = IP6M_MINLEN; in mobility_print() 213 hlen = IP6M_MINLEN; in mobility_print() 215 TCHECK2(*mh, hlen + 8); in mobility_print() 218 EXTRACT_32BITS(&bp[hlen]), in mobility_print() 219 EXTRACT_32BITS(&bp[hlen + 4])); in mobility_print() 221 hlen += 8; in mobility_print() 229 hlen = IP6M_MINLEN; in mobility_print() 231 TCHECK2(*mh, hlen + 8); in mobility_print() 234 EXTRACT_32BITS(&bp[hlen]), in mobility_print() [all …]
|
D | print-sl.c | 117 u_int hlen; in sliplink_print() local 145 hlen = IP_HL(ip); in sliplink_print() 146 hlen += TH_OFF((struct tcphdr *)&((int *)ip)[hlen]); in sliplink_print() 147 lastlen[dir][lastconn] = length - (hlen << 2); in sliplink_print() 195 register u_int flags, hlen; in compressed_sl_print() local 235 hlen = IP_HL(ip); in compressed_sl_print() 236 hlen += TH_OFF((struct tcphdr *)&((int32_t *)ip)[hlen]); in compressed_sl_print() 237 lastlen[dir][lastconn] = length - (hlen << 2); in compressed_sl_print()
|
D | print-tcp.c | 158 register u_int hlen; local 188 hlen = TH_OFF(tp) * 4; 217 if (hlen < sizeof(*tp)) { 219 length - hlen, hlen, (unsigned long)sizeof(*tp)); 231 (void)printf("tcp %d", length - hlen); 232 if (hlen > length) { 234 hlen, length); 365 if (hlen > length) { 367 hlen, length); 406 length -= hlen; [all …]
|
D | print-dccp.c | 177 u_int hlen; in dccp_print() local 203 hlen = dh->dccph_doff * 4; in dccp_print() 220 (void)printf(" %d", len - hlen); in dccp_print() 221 if (hlen > len) { in dccp_print() 223 hlen, len); in dccp_print() 323 if (hlen > dccp_basic_hdr_len(dh) + extlen){ in dccp_print() 329 hlen -= dccp_basic_hdr_len(dh) + extlen; in dccp_print() 334 if (hlen <= optlen) break; in dccp_print() 335 hlen -= optlen; in dccp_print()
|
D | print-icmp.c | 347 u_int hlen, dport, mtu, obj_tlen, obj_class_num, obj_ctype; in icmp_print() local 384 hlen = IP_HL(oip) * 4; in icmp_print() 385 ouh = (struct udphdr *)(((u_char *)oip) + hlen); in icmp_print() 625 hlen = plen - ICMP_EXTD_MINLEN; in icmp_print() 627 vec[0].len = hlen; in icmp_print() 631 hlen); in icmp_print() 633 hlen -= 4; /* subtract common header size */ in icmp_print() 636 while (hlen > sizeof(struct icmp_mpls_ext_object_header_t)) { in icmp_print() 651 … hlen-=sizeof(struct icmp_mpls_ext_object_header_t); /* length field includes tlv header */ in icmp_print() 685 if (hlen < obj_tlen) in icmp_print() [all …]
|
D | print-ip.c | 524 u_int hlen; in ip_print() local 546 hlen = IP_HL(ipds->ip) * 4; in ip_print() 547 if (hlen < sizeof (struct ip)) { in ip_print() 548 (void)printf("bad-hlen %u", hlen); in ip_print() 556 if (ipds->len < hlen) { in ip_print() 579 ipds->len -= hlen; in ip_print() 617 if ((hlen - sizeof(struct ip)) > 0) { in ip_print() 619 ip_optprint((u_char *)(ipds->ip + 1), hlen - sizeof(struct ip)); in ip_print() 623 if (!Kflag && (u_char *)ipds->ip + hlen <= ndo->ndo_snapend) { in ip_print() 625 vec[0].len = hlen; in ip_print() [all …]
|
/external/qemu/slirp/ |
D | ip_icmp.c | 71 icmp_input(struct mbuf *m, int hlen) in icmp_input() argument 95 m->m_len -= hlen; in icmp_input() 96 m->m_data += hlen; in icmp_input() 102 m->m_len += hlen; in icmp_input() 103 m->m_data -= hlen; in icmp_input() 112 ip->ip_len += hlen; /* since ip_input subtracts this */ in icmp_input() 207 unsigned hlen, shlen, s_ip_len; in icmp_error() local 252 hlen= sizeof(struct ip ); /* no options in reply */ in icmp_error() 255 m->m_data += hlen; in icmp_error() 256 m->m_len -= hlen; in icmp_error() [all …]
|
D | ip_output.c | 60 register int hlen = sizeof(struct ip ); in ip_output() local 80 ip->ip_hl = hlen >> 2; in ip_output() 101 ip->ip_sum = cksum(m, hlen); in ip_output() 117 len = (IF_MTU - hlen) &~ 7; /* ip databytes per packet */ in ip_output() 133 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len) { in ip_output() 152 mhip->ip_off = ((off - hlen) >> 3) + (ip->ip_off & ~IP_MF); in ip_output() 178 m_adj(m, hlen + firstlen - (u_int16_t)ip->ip_len); in ip_output() 182 ip->ip_sum = cksum(m, hlen); in ip_output()
|
D | ip_input.c | 79 int hlen; in ip_input() local 99 hlen = ip->ip_hl << 2; in ip_input() 100 if (hlen<sizeof(struct ip ) || hlen>m->m_len) {/* min header length */ in ip_input() 109 if(cksum(m,hlen)) { in ip_input() 118 if (ip->ip_len < hlen) { in ip_input() 208 ip->ip_len -= hlen; in ip_input() 233 ip->ip_len -= hlen; in ip_input() 241 tcp_input(m, hlen, (struct socket *)NULL); in ip_input() 244 udp_input(m, hlen); in ip_input() 247 icmp_input(m, hlen); in ip_input() [all …]
|
/external/qemu/slirp-android/ |
D | ip_icmp.c | 72 icmp_input(struct mbuf *m, int hlen) in icmp_input() argument 96 m->m_len -= hlen; in icmp_input() 97 m->m_data += hlen; in icmp_input() 103 m->m_len += hlen; in icmp_input() 104 m->m_data -= hlen; in icmp_input() 113 ip->ip_len += hlen; /* since ip_input subtracts this */ in icmp_input() 209 unsigned hlen, shlen, s_ip_len; in icmp_error() local 254 hlen= sizeof(struct ip ); /* no options in reply */ in icmp_error() 257 m->m_data += hlen; in icmp_error() 258 m->m_len -= hlen; in icmp_error() [all …]
|
D | ip_output.c | 60 register int hlen = sizeof(struct ip ); in ip_output() local 80 ip->ip_hl = hlen >> 2; in ip_output() 101 ip->ip_sum = cksum(m, hlen); in ip_output() 117 len = (IF_MTU - hlen) &~ 7; /* ip databytes per packet */ in ip_output() 133 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len) { in ip_output() 152 mhip->ip_off = ((off - hlen) >> 3) + (ip->ip_off & ~IP_MF); in ip_output() 178 m_adj(m, hlen + firstlen - (u_int16_t)ip->ip_len); in ip_output() 182 ip->ip_sum = cksum(m, hlen); in ip_output()
|
D | ip_input.c | 79 int hlen; in ip_input() local 99 hlen = ip->ip_hl << 2; in ip_input() 100 if (hlen<sizeof(struct ip ) || hlen>m->m_len) {/* min header length */ in ip_input() 109 if(cksum(m,hlen)) { in ip_input() 118 if (ip->ip_len < hlen) { in ip_input() 208 ip->ip_len -= hlen; in ip_input() 233 ip->ip_len -= hlen; in ip_input() 241 tcp_input(m, hlen, (struct socket *)NULL); in ip_input() 244 udp_input(m, hlen); in ip_input() 247 icmp_input(m, hlen); in ip_input() [all …]
|
/external/qemu/net/ |
D | checksum.c | 58 int hlen, plen, proto, csum_offset; in net_checksum_calculate() local 63 hlen = (data[14] & 0x0f) * 4; in net_checksum_calculate() 64 plen = (data[16] << 8 | data[17]) - hlen; in net_checksum_calculate() 81 data[14+hlen+csum_offset] = 0; in net_checksum_calculate() 82 data[14+hlen+csum_offset+1] = 0; in net_checksum_calculate() 83 csum = net_checksum_tcpudp(plen, proto, data+14+12, data+14+hlen); in net_checksum_calculate() 84 data[14+hlen+csum_offset] = csum >> 8; in net_checksum_calculate() 85 data[14+hlen+csum_offset+1] = csum & 0xff; in net_checksum_calculate()
|
/external/chromium_org/third_party/openssl/openssl/patches/ |
D | paddingext.patch | 56 + int hlen = ret - (unsigned char *)s->init_buf->data; 61 + hlen -= 5; 62 + if (hlen > 0xff && hlen < 0x200) 64 + hlen = 0x200 - hlen; 65 + if (hlen >= 4) 66 + hlen -= 4; 68 + hlen = 0; 71 + s2n(hlen, ret); 72 + memset(ret, 0, hlen); 73 + ret += hlen;
|
/external/chromium_org/third_party/openssl/patches.chromium/ |
D | 0008-paddingext.patch | 55 ++ int hlen = ret - (unsigned char *)s->init_buf->data; 60 ++ hlen -= 5; 61 ++ if (hlen > 0xff && hlen < 0x200) 63 ++ hlen = 0x200 - hlen; 64 ++ if (hlen >= 4) 65 ++ hlen -= 4; 67 ++ hlen = 0; 70 ++ s2n(hlen, ret); 71 ++ memset(ret, 0, hlen); 72 ++ ret += hlen;
|
D | 0012-paddingext2.patch | 37 + * subtract it to compute hlen for 99 - int hlen = ret - (unsigned char *)s->init_buf->data; 104 - hlen -= 5; 105 - if (hlen > 0xff && hlen < 0x200) 108 - hlen = 0x200 - hlen; 109 - if (hlen >= 4) 110 - hlen -= 4; 112 - hlen = 0; 125 - s2n(hlen, ret); 126 - memset(ret, 0, hlen); [all …]
|
/external/wpa_supplicant_8/src/tls/ |
D | tlsv1_client_write.c | 433 size_t rlen, hlen, clen; in tls_write_client_certificate_verify() local 476 hlen = SHA256_MAC_LEN; in tls_write_client_certificate_verify() 478 crypto_hash_finish(conn->verify.sha256_cert, hpos, &hlen) < in tls_write_client_certificate_verify() 501 os_memmove(hash + 19, hash, hlen); in tls_write_client_certificate_verify() 502 hlen += 19; in tls_write_client_certificate_verify() 509 hlen = MD5_MAC_LEN; in tls_write_client_certificate_verify() 511 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) in tls_write_client_certificate_verify() 525 hlen = SHA1_MAC_LEN; in tls_write_client_certificate_verify() 527 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { in tls_write_client_certificate_verify() 536 hlen += MD5_MAC_LEN; in tls_write_client_certificate_verify() [all …]
|
D | tlsv1_server_write.c | 441 int hlen; in tls_write_server_key_exchange() local 445 hlen = tlsv12_key_x_server_params_hash( in tls_write_server_key_exchange() 460 if (hlen < 0 || pos + 2 > end) { in tls_write_server_key_exchange() 482 hlen += 19; in tls_write_server_key_exchange() 493 hlen = tls_key_x_server_params_hash( in tls_write_server_key_exchange() 499 if (hlen < 0) { in tls_write_server_key_exchange() 506 hash, hlen); in tls_write_server_key_exchange() 510 hash[hlen - 1] ^= 0x80; in tls_write_server_key_exchange() 530 crypto_private_key_sign_pkcs1(conn->cred->key, hash, hlen, in tls_write_server_key_exchange() 708 size_t rlen, hlen; in tls_write_server_finished() local [all …]
|
D | tlsv1_common.c | 344 size_t hlen; in tlsv12_key_x_server_params_hash() local 353 hlen = SHA256_MAC_LEN; in tlsv12_key_x_server_params_hash() 354 if (crypto_hash_finish(ctx, hash, &hlen) < 0) in tlsv12_key_x_server_params_hash() 357 return hlen; in tlsv12_key_x_server_params_hash() 368 size_t hlen; in tls_key_x_server_params_hash() local 381 hlen = MD5_MAC_LEN; in tls_key_x_server_params_hash() 382 if (crypto_hash_finish(ctx, hash, &hlen) < 0) in tls_key_x_server_params_hash() 384 hpos += hlen; in tls_key_x_server_params_hash() 393 hlen = hash + sizeof(hash) - hpos; in tls_key_x_server_params_hash() 394 if (crypto_hash_finish(ctx, hpos, &hlen) < 0) in tls_key_x_server_params_hash() [all …]
|
D | tlsv1_server_read.c | 776 size_t hlen; in tls_process_certificate_verify() local 873 hlen = SHA256_MAC_LEN; in tls_process_certificate_verify() 875 crypto_hash_finish(conn->verify.sha256_cert, hpos, &hlen) < in tls_process_certificate_verify() 887 hlen = MD5_MAC_LEN; in tls_process_certificate_verify() 889 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) in tls_process_certificate_verify() 903 hlen = SHA1_MAC_LEN; in tls_process_certificate_verify() 905 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { in tls_process_certificate_verify() 914 hlen += MD5_MAC_LEN; in tls_process_certificate_verify() 920 wpa_hexdump(MSG_MSGDUMP, "TLSv1: CertificateVerify hash", hash, hlen); in tls_process_certificate_verify() 923 hash, hlen, pos, end - pos, &alert) < 0) { in tls_process_certificate_verify() [all …]
|
D | tlsv1_client_read.c | 508 int hlen; in tlsv1_process_diffie_hellman() local 532 hlen = tlsv12_key_x_server_params_hash( in tlsv1_process_diffie_hellman() 540 hlen = tls_key_x_server_params_hash( in tlsv1_process_diffie_hellman() 546 if (hlen < 0) in tlsv1_process_diffie_hellman() 549 hash, hlen); in tlsv1_process_diffie_hellman() 553 hash, hlen, pos, end - pos, in tlsv1_process_diffie_hellman() 854 size_t left, len, hlen; in tls_process_server_finished() local 913 hlen = SHA256_MAC_LEN; in tls_process_server_finished() 915 crypto_hash_finish(conn->verify.sha256_server, hash, &hlen) in tls_process_server_finished() 926 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/wpa_supplicant_8/src/ap/ |
D | iapp.c | 310 int len, hlen; in iapp_receive_udp() local 340 hlen = be_to_host16(hdr->length); in iapp_receive_udp() 345 be_to_host16(hdr->identifier), hlen); in iapp_receive_udp() 351 if (hlen > len) { in iapp_receive_udp() 353 hlen, len); in iapp_receive_udp() 356 if (hlen < len) { in iapp_receive_udp() 358 len - hlen); in iapp_receive_udp() 359 len = hlen; in iapp_receive_udp() 364 iapp_process_add_notify(iapp, &from, hdr, hlen - sizeof(*hdr)); 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/openssl/crypto/hmac/ |
D | hm_pmeth.c | 162 unsigned int hlen; in hmac_signctx() local 172 if (!HMAC_Final(&hctx->ctx, sig, &hlen)) in hmac_signctx() 174 *siglen = (size_t)hlen; in hmac_signctx()
|