Lines Matching refs:htons
103 ah->arp_hrd = htons(ARPHRD_ETHER); in arpwhohas()
104 ah->arp_pro = htons(ETHERTYPE_IP); in arpwhohas()
107 ah->arp_op = htons(ARPOP_REQUEST); in arpwhohas()
194 if (ah->arp_hrd != htons(ARPHRD_ETHER) || in arprecv()
195 ah->arp_pro != htons(ETHERTYPE_IP) || in arprecv()
206 if (ah->arp_op == htons(ARPOP_REQUEST)) { in arprecv()
216 if (ah->arp_op != htons(ARPOP_REPLY)) { in arprecv()
255 if (arp->arp_hrd != htons(ARPHRD_ETHER) || in arp_reply()
256 arp->arp_pro != htons(ETHERTYPE_IP) || in arp_reply()
266 if (arp->arp_op != htons(ARPOP_REQUEST)) { in arp_reply()
284 arp->arp_op = htons(ARPOP_REPLY); in arp_reply()