Lines Matching refs:htons
571 ip->ip_off = htons(ntohs(ip->ip_off) + (precut >> 3));
574 ip->ip_len = htons(ip_len);
586 htons(ntohs(frea->fr_ip->ip_len) - aftercut);
587 frea->fr_ip->ip_off = htons(ntohs(frea->fr_ip->ip_off) +
672 ip->ip_len = htons(off + hlen);
827 h->ip_off = htons(ntohs(h->ip_off) +
829 h->ip_len = htons(ntohs(h->ip_len) - precut);
884 h->ip_len = htons(ntohs(h->ip_len) - aftercut);
1076 htons(ntohs(frent->fr_ip6f_opt.ip6f_offlg) +
1080 ip6->ip6_plen = htons(plen);
1089 frea->fr_ip6->ip6_plen = htons(FR_IP6_PLEN(frea) -
1092 htons(ntohs(frea->fr_ip6f_opt.ip6f_offlg) +
1155 ip6->ip6_plen = htons(off);
1355 htons(ntohs(fh->ip6f_offlg & IP6F_OFF_MASK)
1357 h->ip6_plen = htons(ntohs(h->ip6_plen) -
1415 htons(ntohs(h->ip6_plen) - aftercut);
1589 if (r->rule_flag & PFRULE_NODF && h->ip_off & htons(IP_DF)) {
1592 h->ip_off &= htons(~IP_DF);
1605 if (h->ip_off & htons(IP_DF)) {
1722 if (h->ip_off & ~htons(IP_DF)) {
1725 h->ip_off &= htons(IP_DF);
2773 *mss, htons(r->max_mss), 0);
2774 *mss = htons(r->max_mss);