Lines Matching refs:htons
738 if (ip->ip_off & htons(IP_MF | IP_OFFMASK)) {
914 ip->ip_len = htons(ntohs(ip->ip_len) - hlen);
915 if (ip->ip_off & htons(IP_MF)) {
920 if (ip->ip_len == htons(0) || (ntohs(ip->ip_len) & 0x7) != 0) {
927 ip->ip_off = htons(ntohs(ip->ip_off) << 3);
1019 ip->ip_off = htons(ntohs(ip->ip_off) + i);
1020 ip->ip_len = htons(ntohs(ip->ip_len) - i);
1038 GETIP(q)->ip_len = htons(ntohs(GETIP(q)->ip_len) - i);
1039 GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i);
1126 ip->ip_len = htons((ip->ip_hl << 2) + next);