HomeSort by relevance Sort by last modified time
    Searched refs:hlen (Results 1 - 25 of 72) sorted by null

1 2 3

  /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 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)
    [all...]
print-dccp.c 177 u_int hlen; local
203 hlen = dh->dccph_doff * 4;
220 (void)printf(" %d", len - hlen);
221 if (hlen > len) {
223 hlen, len);
323 if (hlen > dccp_basic_hdr_len(dh) + extlen){
329 hlen -= dccp_basic_hdr_len(dh) + extlen;
334 if (hlen <= optlen) break;
335 hlen -= optlen;
print-icmp.c 347 u_int hlen, dport, mtu, obj_tlen, obj_class_num, obj_ctype; local
384 hlen = IP_HL(oip) * 4;
385 ouh = (struct udphdr *)(((u_char *)oip) + hlen);
625 hlen = plen - ICMP_EXTD_MINLEN;
627 vec[0].len = hlen;
631 hlen);
633 hlen -= 4; /* subtract common header size */
636 while (hlen > sizeof(struct icmp_mpls_ext_object_header_t)) {
651 hlen-=sizeof(struct icmp_mpls_ext_object_header_t); /* length field includes tlv header */
685 if (hlen < obj_tlen
    [all...]
print-ip.c 524 u_int hlen; local
546 hlen = IP_HL(ipds->ip) * 4;
547 if (hlen < sizeof (struct ip)) {
548 (void)printf("bad-hlen %u", hlen);
556 if (ipds->len < hlen) {
579 ipds->len -= hlen;
617 if ((hlen - sizeof(struct ip)) > 0) {
619 ip_optprint((u_char *)(ipds->ip + 1), hlen - sizeof(struct ip));
623 if (!Kflag && (u_char *)ipds->ip + hlen <= ndo->ndo_snapend)
    [all...]
  /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_8/src/tls/
tlsv1_client_write.c 433 size_t rlen, hlen, clen; local
476 hlen = SHA256_MAC_LEN;
478 crypto_hash_finish(conn->verify.sha256_cert, hpos, &hlen) <
501 os_memmove(hash + 19, hash, hlen);
502 hlen += 19;
509 hlen = MD5_MAC_LEN;
511 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0)
525 hlen = SHA1_MAC_LEN;
527 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) {
536 hlen += MD5_MAC_LEN
644 size_t rlen, hlen; local
    [all...]
tlsv1_server_write.c 441 int hlen; local
445 hlen = tlsv12_key_x_server_params_hash(
460 if (hlen < 0 || pos + 2 > end) {
482 hlen += 19;
493 hlen = tls_key_x_server_params_hash(
499 if (hlen < 0) {
506 hash, hlen);
510 hash[hlen - 1] ^= 0x80;
530 crypto_private_key_sign_pkcs1(conn->cred->key, hash, hlen,
708 size_t rlen, hlen; local
    [all...]
tlsv1_common.c 344 size_t hlen; local
353 hlen = SHA256_MAC_LEN;
354 if (crypto_hash_finish(ctx, hash, &hlen) < 0)
357 return hlen;
368 size_t hlen; local
381 hlen = MD5_MAC_LEN;
382 if (crypto_hash_finish(ctx, hash, &hlen) < 0)
384 hpos += hlen;
393 hlen = hash + sizeof(hash) - hpos;
394 if (crypto_hash_finish(ctx, hpos, &hlen) < 0
    [all...]
tlsv1_server_read.c 776 size_t hlen; local
873 hlen = SHA256_MAC_LEN;
875 crypto_hash_finish(conn->verify.sha256_cert, hpos, &hlen) <
887 hlen = MD5_MAC_LEN;
889 crypto_hash_finish(conn->verify.md5_cert, hpos, &hlen) < 0)
903 hlen = SHA1_MAC_LEN;
905 crypto_hash_finish(conn->verify.sha1_cert, hpos, &hlen) < 0) {
914 hlen += MD5_MAC_LEN;
920 wpa_hexdump(MSG_MSGDUMP, "TLSv1: CertificateVerify hash", hash, hlen);
923 hash, hlen, pos, end - pos, &alert) < 0)
991 size_t left, len, hlen; local
    [all...]
  /hardware/broadcom/wlan/bcmdhd/dhdutil/include/proto/
bcmip.h 181 uint16 len = 0, hlen; local
188 hlen = 8;
190 hlen = (eh->hdrlen + 2) << 2;
192 hlen = IPV6_EXTHDR_LEN(eh);
194 len += hlen;
  /external/iptables/extensions/
libip6t_DNPT.c 41 npt->src_pfx_len = cb->val.hlen;
45 npt->dst_pfx_len = cb->val.hlen;
libip6t_SNPT.c 41 npt->src_pfx_len = cb->val.hlen;
45 npt->dst_pfx_len = cb->val.hlen;
  /external/wpa_supplicant_8/src/ap/
iapp.c 310 int len, hlen; local
340 hlen = be_to_host16(hdr->length);
345 be_to_host16(hdr->identifier), hlen);
351 if (hlen > len) {
352 wpa_printf(MSG_INFO, "Underflow IAPP frame (hlen=%d len=%d)",
353 hlen, len);
356 if (hlen < len) {
358 len - hlen);
359 len = hlen;
364 iapp_process_add_notify(iapp, &from, hdr, hlen - sizeof(*hdr))
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/hmac/
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/
hm_pmeth.c 162 unsigned int hlen; local
172 if (!HMAC_Final(&hctx->ctx, sig, &hlen))
174 *siglen = (size_t)hlen;
  /system/core/libnetutils/
dhcpclient.c 271 ALOGD("op = %s (%d), htype = %d, hlen = %d, hops = %d",
272 name, msg->op, msg->htype, msg->hlen, msg->hops);
280 c = msg->hlen > 16 ? 16 : msg->hlen;
372 if (reply->hlen != msg->hlen) {
373 if (verbose) ALOGD("netcfg: Wrong Hlen %d != %d\n", reply->hlen, msg->hlen);
376 if (memcmp(msg->chaddr, reply->chaddr, msg->hlen)) {
    [all...]
dhcpmsg.h 39 uint8_t hlen; /* hw addr len */ member in struct:dhcp_msg

Completed in 584 milliseconds

1 2 3