[SK_BUFF]: Introduce arp_hdr(), remove skb->nh.arph
[safe/jmp/linux-2.6] / include / linux / if_arp.h
index 7f57142..ed7b93c 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 */