Lines Matching refs:htons
99 ah->arp_hrd = htons(ARPHRD_ETHER); in arpwhohas()
100 ah->arp_pro = htons(ETHERTYPE_IP); in arpwhohas()
103 ah->arp_op = htons(ARPOP_REQUEST); in arpwhohas()
192 if (ah->arp_hrd != htons(ARPHRD_ETHER) || in arprecv()
193 ah->arp_pro != htons(ETHERTYPE_IP) || in arprecv()
205 if (ah->arp_op == htons(ARPOP_REQUEST)) { in arprecv()
215 if (ah->arp_op != htons(ARPOP_REPLY)) { in arprecv()
256 if (arp->arp_hrd != htons(ARPHRD_ETHER) || in arp_reply()
257 arp->arp_pro != htons(ETHERTYPE_IP) || in arp_reply()
268 if (arp->arp_op != htons(ARPOP_REQUEST)) { in arp_reply()
286 arp->arp_op = htons(ARPOP_REPLY); in arp_reply()