Lines Matching refs:ip_off
496 ip->ip_off = htons(ntohs(frag->ip6f_offlg) >> 3);
498 ip->ip_off |= htons(IP_MF);
500 ip->ip_off = htons(IP_DF);
509 uint16_t ip_off)
520 if (ip_off == 0 && plen <= mtu - hlen) {
540 if (ip_off != 0) {
546 offset = (ntohs(ip_off) & IP_OFFMASK) << 3;
560 if (len < plen || (ip_off & htons(IP_MF)) != 0)
745 if (ip->ip_off & ~ntohs(IP_MF|IP_DF)) {
795 oip->ip_off = htons(IP_DF);
1178 uint16_t ip_id, ip_off;
1198 /* Save ip_id and ip_off, both are in network byte order */
1200 ip_off = ip->ip_off & htons(IP_OFFMASK | IP_MF);
1203 if ((ip->ip_off & htons(IP_MF)) != 0 && (plen & 0x7) != 0) {
1209 if (proto == IPPROTO_ICMP && ip_off != 0) {
1223 (ip->ip_off & htons(IP_DF)) != 0) {
1271 nat64_fragment6(&cfg->stats, &ip6, &mq, m, nh.nh_mtu, ip_id, ip_off);