Searched refs:s_ip_len (Results 1 - 2 of 2) sorted by relevance

/external/qemu/slirp/
H A Dip_icmp.c207 unsigned hlen, shlen, s_ip_len; local
231 s_ip_len=ip->ip_len;
260 if(minsize) s_ip_len=shlen+ICMP_MINLEN; /* return header+8b only */
261 else if(s_ip_len>ICMP_MAXDATALEN) /* maximum size */
262 s_ip_len=ICMP_MAXDATALEN;
264 m->m_len=ICMP_MINLEN+s_ip_len; /* 8 bytes ICMP header */
273 memcpy(&icp->icmp_ip, msrc->m_data, s_ip_len); /* report the ip packet */
/external/qemu/slirp-android/
H A Dip_icmp.c209 unsigned hlen, shlen, s_ip_len; local
233 s_ip_len=ip->ip_len;
262 if(minsize) s_ip_len=shlen+ICMP_MINLEN; /* return header+8b only */
263 else if(s_ip_len>ICMP_MAXDATALEN) /* maximum size */
264 s_ip_len=ICMP_MAXDATALEN;
266 m->m_len=ICMP_MINLEN+s_ip_len; /* 8 bytes ICMP header */
275 memcpy(&icp->icmp_ip, msrc->m_data, s_ip_len); /* report the ip packet */

Completed in 86 milliseconds