Lines Matching refs:htons
104 ah->arp_hrd = htons(ARPHRD_ETHER); in arpwhohas()
105 ah->arp_pro = htons(ETHERTYPE_IP); in arpwhohas()
108 ah->arp_op = htons(ARPOP_REQUEST); in arpwhohas()
197 if (ah->arp_hrd != htons(ARPHRD_ETHER) || in arprecv()
198 ah->arp_pro != htons(ETHERTYPE_IP) || in arprecv()
210 if (ah->arp_op == htons(ARPOP_REQUEST)) { in arprecv()
220 if (ah->arp_op != htons(ARPOP_REPLY)) { in arprecv()
261 if (arp->arp_hrd != htons(ARPHRD_ETHER) || in arp_reply()
262 arp->arp_pro != htons(ETHERTYPE_IP) || in arp_reply()
273 if (arp->arp_op != htons(ARPOP_REQUEST)) { in arp_reply()
291 arp->arp_op = htons(ARPOP_REPLY); in arp_reply()