Lines Matching refs:arphdr
375 hw_src = (u8 *)ethhdr + ETH_HLEN + sizeof(struct arphdr);
1104 struct arphdr *arphdr;
1149 arphdr = (struct arphdr *)((u8 *)ethhdr + headlen);
1154 if (arphdr->ar_hrd != htons(ARPHRD_ETHER))
1156 if (arphdr->ar_pro != htons(ETH_P_IP))
1158 if (arphdr->ar_hln != ETH_ALEN)
1160 if (arphdr->ar_pln != 4)
1163 hw_src = (u8 *)arphdr + sizeof(struct arphdr);