Lines Matching refs:htons
121 ah->ar_hrd = htons(ARPHRD_ETHER); in send_pack()
122 ah->ar_pro = htons(ETH_P_IP); in send_pack()
125 ah->ar_op = option_mask32 & ADVERT ? htons(ARPOP_REPLY) : htons(ARPOP_REQUEST); in send_pack()
206 if (ah->ar_op != htons(ARPOP_REQUEST) && ah->ar_op != htons(ARPOP_REPLY)) in recv_pack()
210 if (ah->ar_hrd != htons(FROM->sll_hatype) in recv_pack()
211 && (FROM->sll_hatype != ARPHRD_FDDI || ah->ar_hrd != htons(ARPHRD_ETHER))) in recv_pack()
215 if (ah->ar_pro != htons(ETH_P_IP) in recv_pack()
256 ah->ar_op == htons(ARPOP_REPLY) ? "ply" : "quest", in recv_pack()
284 if (ah->ar_op == htons(ARPOP_REQUEST)) in recv_pack()
369 G.probe_saddr.sin_port = htons(1025); in arping_main()
385 me.sll_protocol = htons(ETH_P_ARP); in arping_main()