Lines Matching refs:ip_off
525 ip->ip_off = htons(ntohs(frag->ip6f_offlg) >> 3); in nat64_init_ip4hdr()
527 ip->ip_off |= htons(IP_MF); in nat64_init_ip4hdr()
529 ip->ip_off = htons(IP_DF); in nat64_init_ip4hdr()
538 uint16_t ip_off) in nat64_fragment6() argument
549 if (ip_off == 0 && plen <= mtu - hlen) { in nat64_fragment6()
569 if (ip_off != 0) { in nat64_fragment6()
575 offset = (ntohs(ip_off) & IP_OFFMASK) << 3; in nat64_fragment6()
589 if (len < plen || (ip_off & htons(IP_MF)) != 0) in nat64_fragment6()
799 if (ip->ip_off & ~ntohs(IP_MF|IP_DF)) { in nat64_icmp_reflect()
849 oip->ip_off = htons(IP_DF); in nat64_icmp_reflect()
1232 uint16_t ip_id, ip_off; in nat64_do_handle_ip4() local
1254 ip_off = ip->ip_off & htons(IP_OFFMASK | IP_MF); in nat64_do_handle_ip4()
1257 if ((ip->ip_off & htons(IP_MF)) != 0 && (plen & 0x7) != 0) { in nat64_do_handle_ip4()
1263 if (proto == IPPROTO_ICMP && ip_off != 0) { in nat64_do_handle_ip4()
1278 (ip->ip_off & htons(IP_DF)) != 0) { in nat64_do_handle_ip4()
1325 nat64_fragment6(&cfg->stats, &ip6, &mq, m, nh->nh_mtu, ip_id, ip_off); in nat64_do_handle_ip4()