Lines Matching refs:mhip
945 struct ip *mhip; /* ip header on the fragment */ in ip_fragment() local
974 mhip = mtod(m, struct ip *); in ip_fragment()
975 *mhip = *ip; in ip_fragment()
977 mhlen = ip_optcopy(ip, mhip) + sizeof (struct ip); in ip_fragment()
978 mhip->ip_v = IPVERSION; in ip_fragment()
979 mhip->ip_hl = mhlen >> 2; in ip_fragment()
983 mhip->ip_off = ((off - hlen) >> 3) + ip_off; in ip_fragment()
987 mhip->ip_off |= IP_MF; in ip_fragment()
988 mhip->ip_len = htons((u_short)(len + mhlen)); in ip_fragment()
1000 mhip->ip_off = htons(mhip->ip_off); in ip_fragment()
1001 mhip->ip_sum = 0; in ip_fragment()
1003 mhip->ip_sum = in_cksum(m, mhlen); in ip_fragment()