Home
last modified time | relevance | path

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

/f-stack/freebsd/netinet/
H A Dip_output.c973 struct ip *mhip; /* ip header on the fragment */ in ip_fragment() local
1002 mhip = mtod(m, struct ip *); in ip_fragment()
1003 *mhip = *ip; in ip_fragment()
1006 mhip->ip_v = IPVERSION; in ip_fragment()
1007 mhip->ip_hl = mhlen >> 2; in ip_fragment()
1011 mhip->ip_off = ((off - hlen) >> 3) + ip_off; in ip_fragment()
1015 mhip->ip_off |= IP_MF; in ip_fragment()
1016 mhip->ip_len = htons((u_short)(len + mhlen)); in ip_fragment()
1028 mhip->ip_off = htons(mhip->ip_off); in ip_fragment()
1029 mhip->ip_sum = 0; in ip_fragment()
[all …]
/f-stack/freebsd/contrib/ipfilter/netinet/
H A Dip_fil_freebsd.c697 register struct ip *ip, *mhip; local
876 mhip = mtod(m, struct ip *);
877 bcopy((char *)ip, (char *)mhip, sizeof(*ip));
879 mhlen = ip_optcopy(ip, mhip) + sizeof (struct ip);
880 IP_HL_A(mhip, mhlen >> 2);
883 mhip->ip_off = ((off - hlen) >> 3) + ip_off;
887 mhip->ip_off |= IP_MF;
888 mhip->ip_len = htons((u_short)(len + mhlen));
897 mhip->ip_off = htons((u_short)mhip->ip_off);
898 mhip->ip_sum = 0;
[all …]