Lines Matching defs:ip_off
499 #define FR_IP_OFF(fr) ((ntohs((fr)->fr_ip->ip_off) & IP_OFFMASK) << 3)
509 u_int16_t off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
571 ip->ip_off = htons(ntohs(ip->ip_off) + (precut >> 3));
572 off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
587 frea->fr_ip->ip_off = htons(ntohs(frea->fr_ip->ip_off) +
703 u_int16_t off = ntohs(h->ip_off) << 3;
827 h->ip_off = htons(ntohs(h->ip_off) +
1534 int mff = (ntohs(h->ip_off) & IP_MF);
1536 u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
1539 int ip_off;
1589 if (r->rule_flag & PFRULE_NODF && h->ip_off & htons(IP_DF)) {
1590 u_int16_t ipoff = h->ip_off;
1592 h->ip_off &= htons(~IP_DF);
1593 h->ip_sum = pf_cksum_fixup(h->ip_sum, ipoff, h->ip_off, 0);
1605 if (h->ip_off & htons(IP_DF)) {
1611 ip_off = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
1721 /* At this point, only IP_DF is allowed in ip_off */
1722 if (h->ip_off & ~htons(IP_DF)) {
1723 u_int16_t ipoff = h->ip_off;
1725 h->ip_off &= htons(IP_DF);
1726 h->ip_sum = pf_cksum_fixup(h->ip_sum, ipoff, h->ip_off, 0);