/external/tcpdump/ |
print-mobility.c | 175 int mhlen, hlen, type; local 207 hlen = IP6M_MINLEN; 213 hlen = IP6M_MINLEN; 215 TCHECK2(*mh, hlen + 8); 218 EXTRACT_32BITS(&bp[hlen]), 219 EXTRACT_32BITS(&bp[hlen + 4])); 221 hlen += 8; 229 hlen = IP6M_MINLEN; 231 TCHECK2(*mh, hlen + 8); 234 EXTRACT_32BITS(&bp[hlen]), [all...] |
print-sl.c | 117 u_int hlen; local 145 hlen = IP_HL(ip); 146 hlen += TH_OFF((struct tcphdr *)&((int *)ip)[hlen]); 147 lastlen[dir][lastconn] = length - (hlen << 2); 195 register u_int flags, hlen; local 231 * 'hlen' is the length of the uncompressed TCP/IP header (in words). 233 * 'length - hlen' is the amount of data in the packet. 235 hlen = IP_HL(ip); 236 hlen += TH_OFF((struct tcphdr *)&((int32_t *)ip)[hlen]) [all...] |
print-tcp.c | 197 register u_int hlen; local 225 hlen = TH_OFF(tp) * 4; 233 if (!qflag && hlen >= sizeof(*tp) && hlen <= length) { 236 nfsreq_print((u_char *)tp + hlen + 4, length - hlen, 242 nfsreply_print((u_char *)tp + hlen + 4, length - hlen, 274 if (hlen < sizeof(*tp)) { 276 length - hlen, hlen, (unsigned long)sizeof(*tp)) [all...] |
print-ip.c | 562 u_int hlen; local 583 hlen = IP_HL(ipds->ip) * 4; 584 if (hlen < sizeof (struct ip)) { 585 (void)printf("bad-hlen %u", hlen); 593 if (ipds->len < hlen) { 616 ipds->len -= hlen; 654 if ((hlen - sizeof(struct ip)) > 0) { 656 ip_optprint((u_char *)(ipds->ip + 1), hlen - sizeof(struct ip)); 660 if ((u_char *)ipds->ip + hlen <= snapend) [all...] |
print-icmp.c | 347 u_int hlen, dport, mtu, obj_tlen, obj_class_num, obj_ctype; local 383 hlen = IP_HL(oip) * 4; 384 ouh = (struct udphdr *)(((u_char *)oip) + hlen); 619 hlen = plen - ICMP_EXTD_MINLEN; 624 hlen); 626 hlen -= 4; /* subtract common header size */ 629 while (hlen > sizeof(struct icmp_mpls_ext_object_header_t)) { 644 hlen-=sizeof(struct icmp_mpls_ext_object_header_t); /* length field includes tlv header */ 678 if (hlen < obj_tlen) 680 hlen -= obj_tlen [all...] |
print-dccp.c | 225 u_int hlen; local 251 hlen = dh->dccph_doff * 4; 268 (void)printf(" %d", len - hlen); 269 if (hlen > len) { 271 hlen, len); 382 if (hlen > dccp_basic_hdr_len(dh) + extlen){ 388 hlen -= dccp_basic_hdr_len(dh) + extlen; 393 if (hlen <= optlen) break; 394 hlen -= optlen;
|
/external/qemu/ |
net-checksum.c | 58 int hlen, plen, proto, csum_offset; local 63 hlen = (data[14] & 0x0f) * 4; 64 plen = (data[16] << 8 | data[17]) - hlen; 81 data[14+hlen+csum_offset] = 0; 82 data[14+hlen+csum_offset+1] = 0; 83 csum = net_checksum_tcpudp(plen, proto, data+14+12, data+14+hlen); 84 data[14+hlen+csum_offset] = csum >> 8; 85 data[14+hlen+csum_offset+1] = csum & 0xff;
|
/external/qemu/slirp/ |
ip_icmp.c | 71 icmp_input(struct mbuf *m, int hlen) 95 m->m_len -= hlen; 96 m->m_data += hlen; 102 m->m_len += hlen; 103 m->m_data -= hlen; 112 ip->ip_len += hlen; /* since ip_input subtracts this */ 207 unsigned hlen, shlen, s_ip_len; local 252 hlen= sizeof(struct ip ); /* no options in reply */ 255 m->m_data += hlen; 256 m->m_len -= hlen; 323 int hlen = ip->ip_hl << 2; local [all...] |
ip_output.c | 60 register int hlen = sizeof(struct ip ); local 70 * hlen = len; 80 ip->ip_hl = hlen >> 2; 101 ip->ip_sum = cksum(m, hlen); 117 len = (IF_MTU - hlen) &~ 7; /* ip databytes per packet */ 133 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len) { 146 /* if (hlen > sizeof (struct ip)) { 152 mhip->ip_off = ((off - hlen) >> 3) + (ip->ip_off & ~IP_MF); 178 m_adj(m, hlen + firstlen - (u_int16_t)ip->ip_len); 182 ip->ip_sum = cksum(m, hlen); [all...] |
ip_input.c | 79 int hlen; local 99 hlen = ip->ip_hl << 2; 100 if (hlen<sizeof(struct ip ) || hlen>m->m_len) {/* min header length */ 106 * ip->ip_sum = cksum(m, hlen); 109 if(cksum(m,hlen)) { 118 if (ip->ip_len < hlen) { 173 /* if (hlen > sizeof (struct ip) && ip_dooptions(m)) 208 ip->ip_len -= hlen; 233 ip->ip_len -= hlen; 272 int hlen = ip->ip_hl << 2; local [all...] |
/external/qemu/slirp-android/ |
ip_icmp.c | 72 icmp_input(struct mbuf *m, int hlen) 96 m->m_len -= hlen; 97 m->m_data += hlen; 103 m->m_len += hlen; 104 m->m_data -= hlen; 113 ip->ip_len += hlen; /* since ip_input subtracts this */ 209 unsigned hlen, shlen, s_ip_len; local 254 hlen= sizeof(struct ip ); /* no options in reply */ 257 m->m_data += hlen; 258 m->m_len -= hlen; 325 int hlen = ip->ip_hl << 2; local [all...] |
ip_output.c | 60 register int hlen = sizeof(struct ip ); local 70 * hlen = len; 80 ip->ip_hl = hlen >> 2; 101 ip->ip_sum = cksum(m, hlen); 117 len = (IF_MTU - hlen) &~ 7; /* ip databytes per packet */ 133 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len) { 146 /* if (hlen > sizeof (struct ip)) { 152 mhip->ip_off = ((off - hlen) >> 3) + (ip->ip_off & ~IP_MF); 178 m_adj(m, hlen + firstlen - (u_int16_t)ip->ip_len); 182 ip->ip_sum = cksum(m, hlen); [all...] |
ip_input.c | 79 int hlen; local 99 hlen = ip->ip_hl << 2; 100 if (hlen<sizeof(struct ip ) || hlen>m->m_len) {/* min header length */ 106 * ip->ip_sum = cksum(m, hlen); 109 if(cksum(m,hlen)) { 118 if (ip->ip_len < hlen) { 173 /* if (hlen > sizeof (struct ip) && ip_dooptions(m)) 208 ip->ip_len -= hlen; 233 ip->ip_len -= hlen; 272 int hlen = ip->ip_hl << 2; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/tls/ |
tlsv1_client_write.c | 439 size_t rlen, hlen, clen; local 481 hlen = MD5_MAC_LEN; 483 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) 497 hlen = SHA1_MAC_LEN; 499 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { 508 hlen += MD5_MAC_LEN; 510 wpa_hexdump(MSG_MSGDUMP, "TLSv1: CertificateVerify hash", hash, hlen); 527 crypto_private_key_sign_pkcs1(conn->cred->key, hash, hlen, 595 size_t rlen, hlen; local 605 hlen = MD5_MAC_LEN [all...] |
tlsv1_record.c | 249 size_t i, rlen, hlen; local 383 hlen = sizeof(hash); 384 if (crypto_hash_finish(hmac, hash, &hlen) < 0) { 389 if (hlen != rl->hash_size || 390 os_memcmp(hash, out_data + *out_len, hlen) != 0) {
|
tlsv1_server_read.c | 758 size_t hlen, buflen; local 830 hlen = MD5_MAC_LEN; 832 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) 846 hlen = SHA1_MAC_LEN; 848 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { 857 hlen += MD5_MAC_LEN; 859 wpa_hexdump(MSG_MSGDUMP, "TLSv1: CertificateVerify hash", hash, hlen); 898 if (buflen != hlen || os_memcmp(buf, hash, buflen) != 0) { 972 size_t left, len, hlen; local 1029 hlen = MD5_MAC_LEN [all...] |
/external/wpa_supplicant_8/src/tls/ |
tlsv1_client_write.c | 435 size_t rlen, hlen, clen; local 477 hlen = MD5_MAC_LEN; 479 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) 493 hlen = SHA1_MAC_LEN; 495 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { 504 hlen += MD5_MAC_LEN; 506 wpa_hexdump(MSG_MSGDUMP, "TLSv1: CertificateVerify hash", hash, hlen); 523 crypto_private_key_sign_pkcs1(conn->cred->key, hash, hlen, 591 size_t rlen, hlen; local 601 hlen = MD5_MAC_LEN [all...] |
tlsv1_record.c | 249 size_t i, rlen, hlen; local 383 hlen = sizeof(hash); 384 if (crypto_hash_finish(hmac, hash, &hlen) < 0) { 389 if (hlen != rl->hash_size || 390 os_memcmp(hash, out_data + *out_len, hlen) != 0) {
|
tlsv1_server_read.c | 754 size_t hlen, buflen; local 826 hlen = MD5_MAC_LEN; 828 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0) 842 hlen = SHA1_MAC_LEN; 844 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) { 853 hlen += MD5_MAC_LEN; 855 wpa_hexdump(MSG_MSGDUMP, "TLSv1: CertificateVerify hash", hash, hlen); 894 if (buflen != hlen || os_memcmp(buf, hash, buflen) != 0) { 968 size_t left, len, hlen; local 1025 hlen = MD5_MAC_LEN [all...] |
/external/wpa_supplicant_8/src/ap/ |
iapp.c | 323 int len, hlen; local 352 hlen = be_to_host16(hdr->length); 357 be_to_host16(hdr->identifier), hlen); 363 if (hlen > len) { 364 printf("Underflow IAPP frame (hlen=%d len=%d)\n", hlen, len); 367 if (hlen < len) { 369 len - hlen); 370 len = hlen; 375 iapp_process_add_notify(iapp, &from, hdr, hlen - sizeof(*hdr)) [all...] |
/external/bluetooth/bluez/plugins/ |
dbusoob.c | 134 int32_t hlen, rlen; local 140 DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, &hash, &hlen, 145 if (hlen != 16 || rlen != 16 || bachk(addr))
|
/external/openssl/crypto/hmac/ |
hm_pmeth.c | 160 unsigned int hlen; local 170 HMAC_Final(&hctx->ctx, sig, &hlen); 171 *siglen = (size_t)hlen;
|
/system/core/libnetutils/ |
dhcpclient.c | 267 LOGD("op = %s (%d), htype = %d, hlen = %d, hops = %d", 268 name, msg->op, msg->htype, msg->hlen, msg->hops); 276 c = msg->hlen > 16 ? 16 : msg->hlen; 366 if (reply->hlen != msg->hlen) { 367 if (verbose) LOGD("netcfg: Wrong Hlen %d != %d\n", reply->hlen, msg->hlen); 370 if (memcmp(msg->chaddr, reply->chaddr, msg->hlen)) { [all...] |
dhcpmsg.h | 39 uint8_t hlen; /* hw addr len */ member in struct:dhcp_msg
|
/external/dnsmasq/contrib/wrt/ |
dhcp_lease_time.c | 62 u8 op, htype, hlen, hops; member in struct:dhcp_packet 159 packet.hlen = 0;
|