/external/qemu/slirp/ |
H A D | 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...] |
H A D | ip_icmp.c | 71 icmp_input(struct mbuf *m, int hlen) argument 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...] |
H A D | 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/ |
H A D | 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...] |
H A D | ip_icmp.c | 72 icmp_input(struct mbuf *m, int hlen) argument 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...] |
H A D | 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/ |
H A D | 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/libppp/src/ |
H A D | tcpmss.c | 101 size_t hlen, olen, optlen; local 106 hlen = tc->th_off << 2; 109 if (hlen <= sizeof(struct tcphdr) || hlen > pktlen) 116 for (olen = hlen - sizeof(struct tcphdr), opt = (u_char *)(tc + 1); 147 size_t hlen, plen; local 155 hlen = pip->ip_hl << 2; 162 ntohs(pip->ip_len) == plen && hlen <= plen && 163 plen >= sizeof(struct tcphdr) + hlen) 164 MSSFixup((struct tcphdr *)(MBUF_CTOP(bp) + hlen), ple [all...] |
H A D | slcompress.c | 164 register u_int hlen = ip->ip_hl; local 183 th = (struct tcphdr *) & ((int *) ip)[hlen]; 235 hlen += th->th_off; 236 hlen <<= 2; 237 if (hlen > m->m_len) 265 oth = (struct tcphdr *) & ((int *) &cs->cs_ip)[hlen]; 266 deltaS = hlen; 267 hlen += th->th_off; 268 hlen <<= 2; 269 if (hlen > 434 register u_int hlen, changes; local [all...] |
/external/tcpdump/ |
H A D | 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 [all...] |
H A D | 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;
|
H A D | 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 < [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/hmac/ |
H A D | hm_pmeth.c | 162 unsigned int hlen; local 172 if (!HMAC_Final(&hctx->ctx, sig, &hlen)) 174 *siglen = (size_t)hlen;
|
/external/openssl/crypto/hmac/ |
H A D | hm_pmeth.c | 162 unsigned int hlen; local 172 if (!HMAC_Final(&hctx->ctx, sig, &hlen)) 174 *siglen = (size_t)hlen;
|
/external/wpa_supplicant_8/hostapd/src/tls/ |
H A D | tlsv1_client_read.c | 763 size_t left, len, hlen; local 822 hlen = SHA256_MAC_LEN; 824 crypto_hash_finish(conn->verify.sha256_server, hash, &hlen) 835 hlen = MD5_MAC_LEN; 837 crypto_hash_finish(conn->verify.md5_server, hash, &hlen) < 0) { 846 hlen = SHA1_MAC_LEN; 849 &hlen) < 0) { 856 hlen = MD5_MAC_LEN + SHA1_MAC_LEN; 864 "server finished", hash, hlen,
|
H A D | tlsv1_record.c | 282 size_t i, rlen, hlen; local 451 hlen = sizeof(hash); 452 if (crypto_hash_finish(hmac, hash, &hlen) < 0) { 458 if (hlen != rl->hash_size || 459 os_memcmp(hash, out_data + plen, hlen) != 0 ||
|
H A D | tlsv1_server_write.c | 575 size_t rlen, hlen; local 587 hlen = SHA256_MAC_LEN; 589 crypto_hash_finish(conn->verify.sha256_server, hash, &hlen) 600 hlen = MD5_MAC_LEN; 602 crypto_hash_finish(conn->verify.md5_server, hash, &hlen) < 0) { 611 hlen = SHA1_MAC_LEN; 614 &hlen) < 0) { 621 hlen = MD5_MAC_LEN + SHA1_MAC_LEN; 629 "server finished", hash, hlen,
|
/external/wpa_supplicant_8/src/tls/ |
H A D | tlsv1_client_read.c | 763 size_t left, len, hlen; local 822 hlen = SHA256_MAC_LEN; 824 crypto_hash_finish(conn->verify.sha256_server, hash, &hlen) 835 hlen = MD5_MAC_LEN; 837 crypto_hash_finish(conn->verify.md5_server, hash, &hlen) < 0) { 846 hlen = SHA1_MAC_LEN; 849 &hlen) < 0) { 856 hlen = MD5_MAC_LEN + SHA1_MAC_LEN; 864 "server finished", hash, hlen,
|
H A D | tlsv1_record.c | 282 size_t i, rlen, hlen; local 451 hlen = sizeof(hash); 452 if (crypto_hash_finish(hmac, hash, &hlen) < 0) { 458 if (hlen != rl->hash_size || 459 os_memcmp(hash, out_data + plen, hlen) != 0 ||
|
H A D | tlsv1_server_write.c | 575 size_t rlen, hlen; local 587 hlen = SHA256_MAC_LEN; 589 crypto_hash_finish(conn->verify.sha256_server, hash, &hlen) 600 hlen = MD5_MAC_LEN; 602 crypto_hash_finish(conn->verify.md5_server, hash, &hlen) < 0) { 611 hlen = SHA1_MAC_LEN; 614 &hlen) < 0) { 621 hlen = MD5_MAC_LEN + SHA1_MAC_LEN; 629 "server finished", hash, hlen,
|
/external/wpa_supplicant_8/wpa_supplicant/src/tls/ |
H A D | tlsv1_client_read.c | 763 size_t left, len, hlen; local 822 hlen = SHA256_MAC_LEN; 824 crypto_hash_finish(conn->verify.sha256_server, hash, &hlen) 835 hlen = MD5_MAC_LEN; 837 crypto_hash_finish(conn->verify.md5_server, hash, &hlen) < 0) { 846 hlen = SHA1_MAC_LEN; 849 &hlen) < 0) { 856 hlen = MD5_MAC_LEN + SHA1_MAC_LEN; 864 "server finished", hash, hlen,
|
H A D | tlsv1_record.c | 282 size_t i, rlen, hlen; local 451 hlen = sizeof(hash); 452 if (crypto_hash_finish(hmac, hash, &hlen) < 0) { 458 if (hlen != rl->hash_size || 459 os_memcmp(hash, out_data + plen, hlen) != 0 ||
|
H A D | tlsv1_server_write.c | 575 size_t rlen, hlen; local 587 hlen = SHA256_MAC_LEN; 589 crypto_hash_finish(conn->verify.sha256_server, hash, &hlen) 600 hlen = MD5_MAC_LEN; 602 crypto_hash_finish(conn->verify.md5_server, hash, &hlen) < 0) { 611 hlen = SHA1_MAC_LEN; 614 &hlen) < 0) { 621 hlen = MD5_MAC_LEN + SHA1_MAC_LEN; 629 "server finished", hash, hlen,
|
/external/dnsmasq/contrib/wrt/ |
H A D | dhcp_lease_time.c | 62 u8 op, htype, hlen, hops; member in struct:dhcp_packet 159 packet.hlen = 0;
|
/external/openssh/ |
H A D | ssh-rsa.c | 213 u_int ret, rsasize, oidlen = 0, hlen = 0; local 223 hlen = 20; 228 hlen = 16; 233 if (hashlen != hlen) { 249 if (len < 0 || (u_int)len != hlen + oidlen) { 250 error("bad decrypted len: %d != %d + %d", len, hlen, oidlen); 254 hashmatch = timingsafe_bcmp(decrypted + oidlen, hash, hlen) == 0;
|