Lines Matching refs:htons
67 eh->ether_type = htons(ETHERTYPE_IP); in send_ether()
110 eh->ether_type = htons(ETHERTYPE_IP); in send_ip()
115 ip->ip_len = htons(iplen); in send_ip()
120 ip->ip_id = htons(id++); in send_ip()
192 ip->ip_off |= htons(IP_MF); in send_ip()
198 ip->ip_off ^= htons(IP_MF); in send_ip()
203 ip->ip_off &= htons(0xe000); in send_ip()
204 ip->ip_off |= htons(sent >> 3); in send_ip()
206 ip->ip_len = htons(ts); in send_ip()
217 else if (!(ip->ip_off & htons(0x1fff))) in send_ip()
259 t2->th_win = htons(4096); in send_tcp()
272 ip2->ip_len = htons(thlen); in send_tcp()
301 ti->ti_len = htons(thlen); in send_udp()