Lines Matching refs:arp
620 struct arp_eth_header *arp; in key_extract_l3l4() local
623 arp = (struct arp_eth_header *)skb_network_header(skb); in key_extract_l3l4()
626 arp->ar_hrd == htons(ARPHRD_ETHER) && in key_extract_l3l4()
627 arp->ar_pro == htons(ETH_P_IP) && in key_extract_l3l4()
628 arp->ar_hln == ETH_ALEN && in key_extract_l3l4()
629 arp->ar_pln == 4) { in key_extract_l3l4()
632 if (ntohs(arp->ar_op) <= 0xff) in key_extract_l3l4()
633 key->ip.proto = ntohs(arp->ar_op); in key_extract_l3l4()
637 memcpy(&key->ipv4.addr.src, arp->ar_sip, sizeof(key->ipv4.addr.src)); in key_extract_l3l4()
638 memcpy(&key->ipv4.addr.dst, arp->ar_tip, sizeof(key->ipv4.addr.dst)); in key_extract_l3l4()
639 ether_addr_copy(key->ipv4.arp.sha, arp->ar_sha); in key_extract_l3l4()
640 ether_addr_copy(key->ipv4.arp.tha, arp->ar_tha); in key_extract_l3l4()