Lines Matching refs:ntohs
213 ip->ip_len = htons(ntohs(ip->ip_len) - hlen);
220 ((ip->ip_off & htons(IP_MF)) && (ntohs(ip->ip_len) & 0x7) != 0)) {
230 ip->ip_off = htons(ntohs(ip->ip_off) << 3);
299 fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len);
309 i = ntohs(ip->ip_off) + ntohs(ip->ip_len);
317 fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len);
347 if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off))
360 i = ntohs(GETIP(p)->ip_off) + ntohs(GETIP(p)->ip_len) -
361 ntohs(ip->ip_off);
363 if (i >= ntohs(ip->ip_len))
367 ip->ip_off = htons(ntohs(ip->ip_off) + i);
368 ip->ip_len = htons(ntohs(ip->ip_len) - i);
381 for (; q != NULL && ntohs(ip->ip_off) + ntohs(ip->ip_len) >
382 ntohs(GETIP(q)->ip_off); q = nq) {
383 i = (ntohs(ip->ip_off) + ntohs(ip->ip_len)) -
384 ntohs(GETIP(q)->ip_off);
385 if (i < ntohs(GETIP(q)->ip_len)) {
386 GETIP(q)->ip_len = htons(ntohs(GETIP(q)->ip_len) - i);
387 GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i);
412 if (ntohs(GETIP(q)->ip_off) != next) {
417 next += ntohs(GETIP(q)->ip_len);