]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/if_arp.h
cmd64x: fix multiword and remove single-word DMA support
[linux-2.6-omap-h63xx.git] / include / linux / if_arp.h
index 7f5714214ee35e787aa77dfbd3b8cf63d21ca620..ed7b93c3083ae668b1505d434aa58a1d9dc601ce 100644 (file)
@@ -148,4 +148,13 @@ struct arphdr
 
 };
 
+#ifdef __KERNEL__
+#include <linux/skbuff.h>
+
+static inline struct arphdr *arp_hdr(const struct sk_buff *skb)
+{
+       return (struct arphdr *)skb_network_header(skb);
+}
+#endif
+
 #endif /* _LINUX_IF_ARP_H */