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