Lines Matching refs:htons
104 arp_h->ar_hrd = htons(ARPHRD_ETHER); in send_packet()
105 arp_h->ar_pro = htons(ETH_P_IP); in send_packet()
108 arp_h->ar_op = (toys.optflags & FLAG_A) ? htons(ARPOP_REPLY) in send_packet()
109 : htons(ARPOP_REQUEST); in send_packet()
137 if (arp_hdr->ar_op != htons(ARPOP_REQUEST) && in recv_from()
138 arp_hdr->ar_op != htons(ARPOP_REPLY)) return; in recv_from()
143 if (arp_hdr->ar_pro != htons(ETH_P_IP) || (arp_hdr->ar_pln != 4) in recv_from()
160 arp_hdr->ar_op == htons(ARPOP_REPLY) ? "ply" : "quest", in recv_from()
174 if (arp_hdr->ar_op == htons(ARPOP_REQUEST)) TT.rcvd_req++; in recv_from()
251 saddr.sin_port = htons(1025); in arping_main()
262 src_pk.sll_protocol = htons(ETH_P_ARP); in arping_main()