Lines Matching refs:htons
626 reh->h_proto = htons(ETH_P_ARP); in arp_input()
628 rah->ar_hrd = htons(1); in arp_input()
629 rah->ar_pro = htons(ETH_P_IP); in arp_input()
632 rah->ar_op = htons(ARPOP_REPLY); in arp_input()
709 reh->h_proto = htons(ETH_P_ARP); in if_encap()
710 rah->ar_hrd = htons(1); in if_encap()
711 rah->ar_pro = htons(ETH_P_IP); in if_encap()
714 rah->ar_op = htons(ARPOP_REQUEST); in if_encap()
731 eh->h_proto = htons(ETH_P_IP); in if_encap()
768 int fport = htons(host_port); in slirp_redir_rm()
788 if (!udp_listen(htons(host_port), guest_addr.s_addr, in slirp_redir()
789 htons(guest_port), 0)) in slirp_redir()
792 if (!solisten(htons(host_port), guest_addr.s_addr, in slirp_redir()
793 htons(guest_port), 0)) in slirp_redir()
803 addr_low_byte, htons(guest_port)); in slirp_add_exec()
825 && htons(so->so_fport) == guest_port) in slirp_find_ctl_socket()