Searched refs:mhlen (Results 1 - 3 of 3) sorted by relevance

/external/qemu/slirp/
H A Dip_output.c124 int mhlen, firstlen = len; local
132 mhlen = sizeof (struct ip);
147 * mhlen = ip_optcopy(ip, mhip) + sizeof (struct ip);
148 * mhip->ip_hl = mhlen >> 2;
151 m->m_len = mhlen;
159 mhip->ip_len = htons((u_int16_t)(len + mhlen));
168 mhip->ip_sum = cksum(m, mhlen);
/external/qemu/slirp-android/
H A Dip_output.c124 int mhlen, firstlen = len; local
132 mhlen = sizeof (struct ip);
147 * mhlen = ip_optcopy(ip, mhip) + sizeof (struct ip);
148 * mhip->ip_hl = mhlen >> 2;
151 m->m_len = mhlen;
159 mhip->ip_len = htons((u_int16_t)(len + mhlen));
168 mhip->ip_sum = cksum(m, mhlen);
/external/tcpdump/
H A Dprint-mobility.c175 int mhlen, hlen, type; local
195 mhlen = ep - bp;
198 mhlen = (int)((mh->ip6m_len + 1) << 3);
300 return(mhlen);
304 mobility_opt_print(&bp[hlen], mhlen - hlen);
306 return(mhlen);
310 return(mhlen);

Completed in 98 milliseconds