Lines Matching refs:ntohs

95 	    inet_ntoa(d->myip), ntohs(d->myport),  in sendip()
96 inet_ntoa(d->destip), ntohs(d->destport))); in sendip()
153 off_q = ntohs(p->ipq_hdr->ip_off) & IP_OFFMASK; in ip_reasm_add()
154 off_ip = ntohs(ip->ip_off) & IP_OFFMASK; in ip_reasm_add()
181 off_q = ntohs(next->ipq_hdr->ip_off) & IP_OFFMASK; in ip_reasm_add()
224 if (n < ntohs(ip->ip_len)) { in readipv4()
226 n, ntohs(ip->ip_len))); in readipv4()
232 fragoffset = (ntohs(ip->ip_off) & IP_OFFMASK) * 8; in readipv4()
233 morefrag = (ntohs(ip->ip_off) & IP_MF) == 0 ? false : true; in readipv4()
240 __func__, inet_ntoa(d->myip), ntohs(d->myport), in readipv4()
241 inet_ntoa(ip->ip_dst), ntohs(uh->uh_dport))); in readipv4()
251 inet_ntoa(ip->ip_src), ntohs(uh->uh_sport), in readipv4()
252 inet_ntoa(ip->ip_dst), ntohs(uh->uh_dport))); in readipv4()
256 ntohs(uh->uh_ulen) - hlen); in readipv4()
261 n = (n > (ntohs(ip->ip_len) - sizeof(*ip))) ? in readipv4()
262 ntohs(ip->ip_len) - sizeof(*ip) : n; in readipv4()
291 __func__, ntohs(ip->ip_id), inet_ntoa(ip->ip_src), in readipv4()
313 fragoffset = (ntohs(ipq->ipq_hdr->ip_off) & IP_OFFMASK) * 8; in readipv4()
316 __func__, ntohs(ipq->ipq_hdr->ip_id), in readipv4()
321 (ntohs(ipq->ipq_hdr->ip_off) & IP_MF) != 0)); in readipv4()
326 n += ntohs(ipq->ipq_hdr->ip_len) - (ipq->ipq_hdr->ip_hl << 2); in readipv4()
331 if ((ntohs(last->ipq_hdr->ip_off) & IP_MF) != 0) { in readipv4()
333 __func__, ntohs(last->ipq_hdr->ip_id), in readipv4()
337 (ntohs(last->ipq_hdr->ip_off) & IP_OFFMASK) * 8, in readipv4()
338 (ntohs(last->ipq_hdr->ip_off) & IP_MF) != 0)); in readipv4()
371 len = ntohs(ipq->ipq_hdr->ip_len) - hlen; in readipv4()
388 __func__, ntohs(ip->ip_id), inet_ntoa(ip->ip_src), in readipv4()