Home
last modified time | relevance | path

Searched refs:mhip (Results 1 – 2 of 2) sorted by relevance

/openbsd/sys/netinet/
H A Dip_output.c708 struct ip *mhip; in ip_fragment() local
720 mhip = mtod(m, struct ip *); in ip_fragment()
721 *mhip = *ip; in ip_fragment()
723 mhlen = ip_optcopy(ip, mhip) + sizeof(struct ip); in ip_fragment()
724 mhip->ip_hl = mhlen >> 2; in ip_fragment()
729 mhip->ip_off = ((off - hlen) >> 3) + in ip_fragment()
732 mhip->ip_off |= IP_MF; in ip_fragment()
736 mhip->ip_off |= IP_MF; in ip_fragment()
737 mhip->ip_off = htons(mhip->ip_off); in ip_fragment()
740 mhip->ip_len = htons(m->m_pkthdr.len); in ip_fragment()
H A Dtcp_output.c1313 struct ip *mhip; in tcp_chopper() local
1315 mhip = mtod(m, struct ip *); in tcp_chopper()
1316 *mhip = *ip; in tcp_chopper()
1317 mhip->ip_len = htons(hlen + len); in tcp_chopper()
1318 mhip->ip_id = htons(ip_randomid()); in tcp_chopper()