Lines Matching refs:htons
85 eth_recv->et_protlen = htons(PROT_ARP); in sandbox_eth_arp_req_to_reply()
88 arp_recv->ar_hrd = htons(ARP_ETHER); in sandbox_eth_arp_req_to_reply()
89 arp_recv->ar_pro = htons(PROT_IP); in sandbox_eth_arp_req_to_reply()
92 arp_recv->ar_op = htons(ARPOP_REPLY); in sandbox_eth_arp_req_to_reply()
184 eth_recv->et_protlen = htons(PROT_ARP); in sandbox_eth_recv_arp_req()
187 arp_recv->ar_hrd = htons(ARP_ETHER); in sandbox_eth_recv_arp_req()
188 arp_recv->ar_pro = htons(PROT_IP); in sandbox_eth_recv_arp_req()
191 arp_recv->ar_op = htons(ARPOP_REQUEST); in sandbox_eth_recv_arp_req()
227 eth_recv->et_protlen = htons(PROT_IP); in sandbox_eth_recv_ping_req()
231 ipr->ip_len = htons(IP_ICMP_HDR_SIZE); in sandbox_eth_recv_ping_req()
232 ipr->ip_off = htons(IP_FLAGS_DFRAG); in sandbox_eth_recv_ping_req()
245 icmpr->un.echo.sequence = htons(1); in sandbox_eth_recv_ping_req()