Home
last modified time | relevance | path

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

/freebsd/contrib/tcpdump/
H A Dprint-mobility.c207 unsigned mhlen, hlen; in mobility_print() local
229 mhlen = (unsigned)(ep - bp); in mobility_print()
232 mhlen = (GET_U_1(mh->ip6m_len) + 1) << 3; in mobility_print()
237 if (type <= IP6M_MAX && mhlen < ip6m_hdrlen[type]) { in mobility_print()
238 ND_PRINT("(header length %u is too small for type %u)", mhlen, type); in mobility_print()
319 return(mhlen); in mobility_print()
323 if (mobility_opt_print(ndo, bp + hlen, mhlen - hlen)) in mobility_print()
326 return(mhlen); in mobility_print()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_fil_freebsd.c809 int mhlen, firstlen = len; in ipf_fastroute() local
817 mhlen = sizeof (struct ip); in ipf_fastroute()
833 mhlen = ip_optcopy(ip, mhip) + sizeof (struct ip); in ipf_fastroute()
834 IP_HL_A(mhip, mhlen >> 2); in ipf_fastroute()
836 m->m_len = mhlen; in ipf_fastroute()
842 mhip->ip_len = htons((u_short)(len + mhlen)); in ipf_fastroute()
849 m->m_pkthdr.len = mhlen + len; in ipf_fastroute()
853 mhip->ip_sum = in_cksum(m, mhlen); in ipf_fastroute()
/freebsd/sys/netinet/
H A Dip_output.c963 int mhlen = sizeof (struct ip); in ip_fragment() local
993 mhlen = ip_optcopy(ip, mhip) + sizeof (struct ip); in ip_fragment()
995 mhip->ip_hl = mhlen >> 2; in ip_fragment()
997 m->m_len = mhlen; in ip_fragment()
1004 mhip->ip_len = htons((u_short)(len + mhlen)); in ip_fragment()
1012 m->m_pkthdr.len = mhlen + len; in ip_fragment()
1019 mhip->ip_sum = in_cksum(m, mhlen); in ip_fragment()