Home
last modified time | relevance | path

Searched refs:ip_len (Results 1 – 25 of 32) sorted by relevance

12

/external/chromium_org/net/quic/crypto/
Dsource_address_token.cc38 size_t ip_len = plaintext[0]; in ParseFromArray() local
39 if (plaintext_length <= 1 + ip_len) { in ParseFromArray()
42 size_t time_len = plaintext[1 + ip_len]; in ParseFromArray()
43 if (plaintext_length != 1 + ip_len + 1 + time_len) { in ParseFromArray()
47 string time_str(&plaintext[1 + ip_len + 1], time_len); in ParseFromArray()
53 ip_.assign(&plaintext[1], ip_len); in ParseFromArray()
/external/qemu/slirp/
Dip_output.c97 if ((u_int16_t)ip->ip_len <= IF_MTU) { in ip_output()
98 ip->ip_len = htons((u_int16_t)ip->ip_len); in ip_output()
133 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len) { in ip_output()
155 if (off + len >= (u_int16_t)ip->ip_len) in ip_output()
156 len = (u_int16_t)ip->ip_len - off; in ip_output()
159 mhip->ip_len = htons((u_int16_t)(len + mhlen)); in ip_output()
178 m_adj(m, hlen + firstlen - (u_int16_t)ip->ip_len); in ip_output()
179 ip->ip_len = htons((u_int16_t)m->m_len); in ip_output()
Dip_input.c117 NTOHS(ip->ip_len); in ip_input()
118 if (ip->ip_len < hlen) { in ip_input()
131 if (m->m_len < ip->ip_len) { in ip_input()
157 if (m->m_len > ip->ip_len) in ip_input()
158 m_adj(m, ip->ip_len - m->m_len); in ip_input()
208 ip->ip_len -= hlen; in ip_input()
233 ip->ip_len -= hlen; in ip_input()
323 if (i >= ip->ip_len) in ip_reass()
327 ip->ip_len -= i; in ip_reass()
336 ip->ip_off + ip->ip_len > q->ipf_off) { in ip_reass()
[all …]
Dip_icmp.c75 int icmplen=ip->ip_len; in icmp_input()
112 ip->ip_len += hlen; /* since ip_input subtracts this */ in icmp_input()
231 s_ip_len=ip->ip_len; in icmp_error()
274 HTONS(icp->icmp_ip.ip_len); in icmp_error()
298 ip->ip_len = m->m_len; in icmp_error()
336 icp->icmp_cksum = cksum(m, ip->ip_len - hlen); in icmp_reflect()
351 ip->ip_len -= optlen; in icmp_reflect()
Dudp.c113 if (ip->ip_len != len) { in udp_input()
114 if (len > ip->ip_len) { in udp_input()
118 m_adj(m, len - ip->ip_len); in udp_input()
119 ip->ip_len = len; in udp_input()
127 save_ip.ip_len+= iphlen; /* tcp_input subtracts this */ in udp_input()
298 ((struct ip *)ui)->ip_len = m->m_len; in udp_output2()
Dip.h84 u_int16_t ip_len; /* total length */ member
236 #define ipf_len ipf_ip.ip_len
Dtcp_output.c532 ((struct ip *)ti)->ip_len = m->m_len;
Dtcp_input.c292 save_ip.ip_len+= iphlen; in tcp_input()
297 tlen = ((struct ip *)ti)->ip_len; in tcp_input()
/external/qemu/slirp-android/
Dip_output.c97 if ((u_int16_t)ip->ip_len <= IF_MTU) { in ip_output()
98 ip->ip_len = htons((u_int16_t)ip->ip_len); in ip_output()
133 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len) { in ip_output()
155 if (off + len >= (u_int16_t)ip->ip_len) in ip_output()
156 len = (u_int16_t)ip->ip_len - off; in ip_output()
159 mhip->ip_len = htons((u_int16_t)(len + mhlen)); in ip_output()
178 m_adj(m, hlen + firstlen - (u_int16_t)ip->ip_len); in ip_output()
179 ip->ip_len = htons((u_int16_t)m->m_len); in ip_output()
Dip_input.c117 NTOHS(ip->ip_len); in ip_input()
118 if (ip->ip_len < hlen) { in ip_input()
131 if (m->m_len < ip->ip_len) { in ip_input()
157 if (m->m_len > ip->ip_len) in ip_input()
158 m_adj(m, ip->ip_len - m->m_len); in ip_input()
208 ip->ip_len -= hlen; in ip_input()
233 ip->ip_len -= hlen; in ip_input()
323 if (i >= ip->ip_len) in ip_reass()
327 ip->ip_len -= i; in ip_reass()
336 ip->ip_off + ip->ip_len > q->ipf_off) { in ip_reass()
[all …]
Dip_icmp.c76 int icmplen=ip->ip_len; in icmp_input()
113 ip->ip_len += hlen; /* since ip_input subtracts this */ in icmp_input()
233 s_ip_len=ip->ip_len; in icmp_error()
276 HTONS(icp->icmp_ip.ip_len); in icmp_error()
300 ip->ip_len = m->m_len; in icmp_error()
338 icp->icmp_cksum = cksum(m, ip->ip_len - hlen); in icmp_reflect()
353 ip->ip_len -= optlen; in icmp_reflect()
Dudp.c120 if (ip->ip_len != len) { in udp_input()
121 if (len > ip->ip_len) { in udp_input()
125 m_adj(m, len - ip->ip_len); in udp_input()
126 ip->ip_len = len; in udp_input()
165 save_ip.ip_len+= iphlen; /* tcp_input subtracts this */ in udp_input()
353 ((struct ip *)ui)->ip_len = m->m_len; in udp_output2_()
Dip.h86 u_int16_t ip_len; /* total length */ member
238 #define ipf_len ipf_ip.ip_len
Dtcp_output.c532 ((struct ip *)ti)->ip_len = m->m_len;
Dtcp_input.c292 save_ip.ip_len+= iphlen; in tcp_input()
297 tlen = ((struct ip *)ti)->ip_len; in tcp_input()
/external/dhcpcd/
Dnet.c735 ip->ip_len = udp->uh_ulen; in make_udp_packet()
742 ip->ip_len = htons(sizeof(*ip) + sizeof(*udp) + length); in make_udp_packet()
756 return ntohs(packet.ip.ip_len) - in get_udp_data()
786 bytes = ntohs(packet.ip.ip_len); in valid_udp_packet()
798 packet.ip.ip_len = packet.udp.uh_ulen; in valid_udp_packet()
/external/tcpdump/
Dip.h55 u_int16_t ip_len; /* total length */ member
Dprint-ip.c552 ipds->len = EXTRACT_16BITS(&ipds->ip->ip_len); in ip_print()
615 (void)printf(", length %u", EXTRACT_16BITS(&ipds->ip->ip_len)); in ip_print()
Dprint-esp.c627 len = EXTRACT_16BITS(&ip->ip_len); in esp_print()
Dprint-icmp.c588 ip_print(gndo, bp, EXTRACT_16BITS(&ip->ip_len)); in icmp_print()
Dprint-tcp.c823 tlen = EXTRACT_16BITS(&ip->ip_len) - IP_HL(ip) * 4;
/external/wpa_supplicant_8/src/tls/
Dx509v3.h44 size_t ip_len; /* IPv4: 4, IPv6: 16 */ member
Dx509v3.c36 name->ip_len = 0; in x509_free_name()
924 name->ip_len = len; in x509_parse_alt_name_ip()
/external/dnsmasq/src/
Dbpf.c203 ip.ip_len = htons(sizeof(struct ip) + in send_via_bpf()
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
Dsctp_input.c6296 NTOHS(ip->ip_len);
6299 ip->ip_len = ntohs(ip->ip_len);
6303 length = ntohs(ip->ip_len);
6305 length = ip->ip_len + iphlen;
6308 length = ip->ip_len + iphlen;
6311 length = ip->ip_len;
6313 length = ip->ip_len + iphlen;
6316 length = ip->ip_len;

12