Lines Matching refs:ip_off
356 #define FR_IP_OFF(fr) ((ntohs((fr)->fr_ip->ip_off) & IP_OFFMASK) << 3)
366 u_int16_t off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
428 ip->ip_off = htons(ntohs(ip->ip_off) + (precut >> 3));
429 off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
446 frea->fr_ip->ip_off = htons(ntohs(frea->fr_ip->ip_off) +
566 u_int16_t off = ntohs(h->ip_off) << 3;
686 h->ip_off = htons(ntohs(h->ip_off) +
864 int mff = (ntohs(h->ip_off) & IP_MF);
866 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
908 if (r->rule_flag & PFRULE_NODF && h->ip_off & htons(IP_DF)) {
909 u_int16_t off = h->ip_off;
911 h->ip_off &= htons(~IP_DF);
912 h->ip_sum = pf_cksum_fixup(h->ip_sum, off, h->ip_off, 0);
923 if (h->ip_off & htons(IP_DF)) {
1030 /* At this point, only IP_DF is allowed in ip_off */
1031 if (h->ip_off & ~htons(IP_DF)) {
1032 u_int16_t off = h->ip_off;
1034 h->ip_off &= htons(IP_DF);
1035 h->ip_sum = pf_cksum_fixup(h->ip_sum, off, h->ip_off, 0);