Lines Matching refs:htons
71 eh->ether_type = htons(ETHERTYPE_IP); in send_ether()
114 eh->ether_type = htons(ETHERTYPE_IP); in send_ip()
119 ip->ip_len = htons(iplen); in send_ip()
124 ip->ip_id = htons(id++); in send_ip()
196 ip->ip_off |= htons(IP_MF); in send_ip()
202 ip->ip_off ^= htons(IP_MF); in send_ip()
207 ip->ip_off &= htons(0xe000); in send_ip()
208 ip->ip_off |= htons(sent >> 3); in send_ip()
210 ip->ip_len = htons(ts); in send_ip()
221 else if (!(ip->ip_off & htons(0x1fff))) in send_ip()
263 t2->th_win = htons(4096); in send_tcp()
276 ip2->ip_len = htons(thlen); in send_tcp()
305 ti->ti_len = htons(thlen); in send_udp()