On Friday, February 10, 2012 07:41:37 Antonio Quartulli wrote:
+#define ARP_HW_SRC(skb) ((uint8_t *)(skb->data) + sizeof(struct ethhdr) +
\ + sizeof(struct arphdr))
You could replace all occurences of "sizeof(struct ethhdr)" with ETH_HLEN.
Cheers,
Marek