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

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/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;
H A Dsctp_os_userspace.h367 u_short ip_len; member in struct:ip
H A Dsctp_output.c4271 ip->ip_len = htons(packet_length);
4273 ip->ip_len = packet_length;
11706 ip->ip_len = htons(len);
11708 ip->ip_len = len;
11711 ip->ip_len = len;
11713 ip->ip_len = htons(len);
H A Dsctp_usrreq.c360 totsz = ntohs(ip->ip_len);
362 totsz = ip->ip_len;
H A Dsctputil.c7804 iph->ip_len = htons(ntohs(iph->ip_len) - sizeof(struct udphdr));
7806 iph->ip_len -= sizeof(struct udphdr);
/external/chromium_org/third_party/usrsctp/usrsctplib/
H A Duser_socket.c2826 ip->ip_len = htons(ip->ip_len);
/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/qemu/slirp-android/
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 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 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 Dtcp_input.c292 save_ip.ip_len+= iphlen;
297 tlen = ((struct ip *)ti)->ip_len;
H A Dtcp_output.c532 ((struct ip *)ti)->ip_len = m->m_len;
H A Dtcp_subr.c165 ((struct ip *)ti)->ip_len = tlen;
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;
/external/qemu/slirp/
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 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_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 Dtcp_input.c292 save_ip.ip_len+= iphlen;
297 tlen = ((struct ip *)ti)->ip_len;
H A Dtcp_output.c532 ((struct ip *)ti)->ip_len = m->m_len;
H A Dtcp_subr.c163 ((struct ip *)ti)->ip_len = tlen;
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;

Completed in 496 milliseconds

12