Lines Matching refs:htons
72 eh->ether_type = htons(ETHERTYPE_IP); in send_ether()
115 eh->ether_type = htons(ETHERTYPE_IP); in send_ip()
120 ip->ip_len = htons(iplen); in send_ip()
125 ip->ip_id = htons(id++); in send_ip()
197 ip->ip_off |= htons(IP_MF); in send_ip()
203 ip->ip_off ^= htons(IP_MF); in send_ip()
208 ip->ip_off &= htons(0xe000); in send_ip()
209 ip->ip_off |= htons(sent >> 3); in send_ip()
211 ip->ip_len = htons(ts); in send_ip()
222 else if (!(ip->ip_off & htons(0x1fff))) in send_ip()
264 t2->th_win = htons(4096); in send_tcp()
277 ip2->ip_len = htons(thlen); in send_tcp()
306 ti->ti_len = htons(thlen); in send_udp()