Searched refs:ip_len (Results 1 - 25 of 36) sorted by relevance

12

/external/chromium_org/net/quic/crypto/
H A Dsource_address_token.cc46 size_t ip_len = plaintext[0]; local
47 if (plaintext_length <= 1 + ip_len) {
50 size_t time_len = plaintext[1 + ip_len];
51 if (plaintext_length != 1 + ip_len + 1 + time_len) {
55 string time_str(&plaintext[1 + ip_len + 1], time_len);
61 ip_.assign(&plaintext[1], ip_len);
/external/qemu/slirp/
H A Dip_output.c97 if ((u_int16_t)ip->ip_len <= IF_MTU) {
98 ip->ip_len = htons((u_int16_t)ip->ip_len);
133 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len) {
155 if (off + len >= (u_int16_t)ip->ip_len)
156 len = (u_int16_t)ip->ip_len - off;
159 mhip->ip_len = htons((u_int16_t)(len + mhlen));
178 m_adj(m, hlen + firstlen - (u_int16_t)ip->ip_len);
179 ip->ip_len = htons((u_int16_t)m->m_len);
H A Dip_icmp.c75 int icmplen=ip->ip_len;
112 ip->ip_len += hlen; /* since ip_input subtracts this */
231 s_ip_len=ip->ip_len;
274 HTONS(icp->icmp_ip.ip_len);
298 ip->ip_len = m->m_len;
336 icp->icmp_cksum = cksum(m, ip->ip_len - hlen);
351 ip->ip_len -= optlen;
H A Dip_input.c117 NTOHS(ip->ip_len);
118 if (ip->ip_len < hlen) {
131 if (m->m_len < ip->ip_len) {
157 if (m->m_len > ip->ip_len)
158 m_adj(m, ip->ip_len - m->m_len);
204 * Adjust ip_len to not reflect header,
208 ip->ip_len -= hlen;
233 ip->ip_len -= hlen;
323 if (i >= ip->ip_len)
327 ip->ip_len
[all...]
H A Dip.h84 u_int16_t ip_len; /* total length */ member in struct:ip
236 #define ipf_len ipf_ip.ip_len
H A Dudp.c72 * ip->ip_len length data (IPDU)
113 if (ip->ip_len != len) {
114 if (len > ip->ip_len) {
118 m_adj(m, len - ip->ip_len);
119 ip->ip_len = len;
127 save_ip.ip_len+= iphlen; /* tcp_input subtracts this */
298 ((struct ip *)ui)->ip_len = m->m_len;
H A Dtcp_output.c532 ((struct ip *)ti)->ip_len = m->m_len;
H A Dtcp_input.c292 save_ip.ip_len+= iphlen;
297 tlen = ((struct ip *)ti)->ip_len;
/external/qemu/slirp-android/
H A Dip_output.c97 if ((u_int16_t)ip->ip_len <= IF_MTU) {
98 ip->ip_len = htons((u_int16_t)ip->ip_len);
133 for (off = hlen + len; off < (u_int16_t)ip->ip_len; off += len) {
155 if (off + len >= (u_int16_t)ip->ip_len)
156 len = (u_int16_t)ip->ip_len - off;
159 mhip->ip_len = htons((u_int16_t)(len + mhlen));
178 m_adj(m, hlen + firstlen - (u_int16_t)ip->ip_len);
179 ip->ip_len = htons((u_int16_t)m->m_len);
H A Dip_icmp.c76 int icmplen=ip->ip_len;
113 ip->ip_len += hlen; /* since ip_input subtracts this */
233 s_ip_len=ip->ip_len;
276 HTONS(icp->icmp_ip.ip_len);
300 ip->ip_len = m->m_len;
338 icp->icmp_cksum = cksum(m, ip->ip_len - hlen);
353 ip->ip_len -= optlen;
H A Dip_input.c117 NTOHS(ip->ip_len);
118 if (ip->ip_len < hlen) {
131 if (m->m_len < ip->ip_len) {
157 if (m->m_len > ip->ip_len)
158 m_adj(m, ip->ip_len - m->m_len);
204 * Adjust ip_len to not reflect header,
208 ip->ip_len -= hlen;
233 ip->ip_len -= hlen;
323 if (i >= ip->ip_len)
327 ip->ip_len
[all...]
H A Dudp.c79 * ip->ip_len length data (IPDU)
120 if (ip->ip_len != len) {
121 if (len > ip->ip_len) {
125 m_adj(m, len - ip->ip_len);
126 ip->ip_len = len;
165 save_ip.ip_len+= iphlen; /* tcp_input subtracts this */
353 ((struct ip *)ui)->ip_len = m->m_len;
H A Dip.h86 u_int16_t ip_len; /* total length */ member in struct:ip
238 #define ipf_len ipf_ip.ip_len
H A Dtcp_output.c532 ((struct ip *)ti)->ip_len = m->m_len;
/external/tcpdump/
H A Dip.h46 * We declare ip_len and ip_off to be short, rather than u_short
55 u_int16_t ip_len; /* total length */ member in struct:ip
H A Dprint-ip.c552 ipds->len = EXTRACT_16BITS(&ipds->ip->ip_len);
615 (void)printf(", length %u", EXTRACT_16BITS(&ipds->ip->ip_len));
H A Dprint-icmp.c588 ip_print(gndo, bp, EXTRACT_16BITS(&ip->ip_len));
H A Dprint-esp.c627 len = EXTRACT_16BITS(&ip->ip_len);
H A Dprint-tcp.c823 tlen = EXTRACT_16BITS(&ip->ip_len) - IP_HL(ip) * 4;
/external/wpa_supplicant_8/hostapd/src/tls/
H A Dx509v3.h44 size_t ip_len; /* IPv4: 4, IPv6: 16 */ member in struct:x509_name
/external/wpa_supplicant_8/src/tls/
H A Dx509v3.h44 size_t ip_len; /* IPv4: 4, IPv6: 16 */ member in struct:x509_name
/external/wpa_supplicant_8/wpa_supplicant/src/tls/
H A Dx509v3.h44 size_t ip_len; /* IPv4: 4, IPv6: 16 */ member in struct:x509_name
/external/dhcpcd/
H A Dnet.c716 * ip structure and an invalid ip_len (basically udp length).
735 ip->ip_len = udp->uh_ulen;
742 ip->ip_len = htons(sizeof(*ip) + sizeof(*udp) + length);
756 return ntohs(packet.ip.ip_len) -
786 bytes = ntohs(packet.ip.ip_len);
798 packet.ip.ip_len = packet.udp.uh_ulen;
/external/dnsmasq/src/
H A Dbpf.c203 ip.ip_len = htons(sizeof(struct ip) +
/external/chromium_org/third_party/usrsctp/usrsctplib/netinet/
H A Dsctp_input.c6307 NTOHS(ip->ip_len);
6310 ip->ip_len = ntohs(ip->ip_len);
6314 length = ntohs(ip->ip_len);
6316 length = ip->ip_len + iphlen;
6319 length = ip->ip_len + iphlen;
6322 length = ip->ip_len;
6324 length = ip->ip_len + iphlen;
6327 length = ip->ip_len;

Completed in 1136 milliseconds

12