diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/icmp.h | 9 | ||||
-rw-r--r-- | include/linux/skbuff.h | 1 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/icmp.h b/include/linux/icmp.h index 24da4fbc1a2..cd3017a1578 100644 --- a/include/linux/icmp.h +++ b/include/linux/icmp.h @@ -82,6 +82,15 @@ struct icmphdr { } un; }; +#ifdef __KERNEL__ +#include <linux/skbuff.h> + +static inline struct icmphdr *icmp_hdr(const struct sk_buff *skb) +{ + return (struct icmphdr *)skb->h.raw; +} +#endif + /* * constants for (set|get)sockopt */ diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index cb1ac48cc80..e580416de78 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h @@ -238,7 +238,6 @@ struct sk_buff { union { struct tcphdr *th; - struct icmphdr *icmph; struct iphdr *ipiph; struct ipv6hdr *ipv6h; unsigned char *raw; |