Lines Matching refs:htons
116 outip->ip_len = htons(plen - optlen); in set_buffers()
117 outip->ip_off = htons(off); in set_buffers()
127 outicmp->icmp_id = htons(ident); in set_buffers()
133 outudp->uh_sport = htons(ident); in set_buffers()
135 htons((ushort_t)(plen - (sizeof (struct ip) + optlen))); in set_buffers()
229 outip->ip_id = htons(ident + seq); in send_probe()
263 outicmp->icmp_seq = htons(seq); in send_probe()
265 outudp->uh_dport = htons((port + seq) % (MAX_PORT + 1)); in send_probe()
370 icp->icmp_id == htons(ident) && in check_reply()
371 icp->icmp_seq == htons(seq)) in check_reply()
379 hicmp->icmp_id == htons(ident) && in check_reply()
380 hicmp->icmp_seq == htons(seq)) { in check_reply()
393 up->uh_sport == htons(ident) && in check_reply()
394 up->uh_dport == htons((port + seq) % in check_reply()