Lines Matching refs:htons

547 	skb->protocol = htons(ETH_P_ARP);  in arp_create()
571 arp->ar_hrd = htons(dev->type); in arp_create()
572 arp->ar_pro = htons(ETH_P_IP); in arp_create()
577 arp->ar_hrd = htons(ARPHRD_AX25); in arp_create()
578 arp->ar_pro = htons(AX25_P_IP); in arp_create()
583 arp->ar_hrd = htons(ARPHRD_NETROM); in arp_create()
584 arp->ar_pro = htons(AX25_P_IP); in arp_create()
591 arp->ar_hrd = htons(ARPHRD_ETHER); in arp_create()
592 arp->ar_pro = htons(ETH_P_IP); in arp_create()
599 arp->ar_op = htons(type); in arp_create()
657 if (is_garp && ar_op == htons(ARPOP_REPLY)) in arp_is_garp()
704 if (arp->ar_pro != htons(ETH_P_IP) || in arp_process()
705 htons(dev_type) != arp->ar_hrd) in arp_process()
720 if ((arp->ar_hrd != htons(ARPHRD_ETHER) && in arp_process()
721 arp->ar_hrd != htons(ARPHRD_IEEE802)) || in arp_process()
722 arp->ar_pro != htons(ETH_P_IP)) in arp_process()
726 if (arp->ar_pro != htons(AX25_P_IP) || in arp_process()
727 arp->ar_hrd != htons(ARPHRD_AX25)) in arp_process()
731 if (arp->ar_pro != htons(AX25_P_IP) || in arp_process()
732 arp->ar_hrd != htons(ARPHRD_NETROM)) in arp_process()
739 if (arp->ar_op != htons(ARPOP_REPLY) && in arp_process()
740 arp->ar_op != htons(ARPOP_REQUEST)) in arp_process()
800 if (arp->ar_op == htons(ARPOP_REQUEST) && skb_metadata_dst(skb)) in arp_process()
807 if (arp->ar_op == htons(ARPOP_REQUEST) && in arp_process()
815 if (arp->ar_op == htons(ARPOP_REQUEST) && in arp_process()
882 (arp->ar_op == htons(ARPOP_REPLY) && in arp_process()
908 if (arp->ar_op != htons(ARPOP_REPLY) || in arp_process()