aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/icmp.h9
-rw-r--r--include/linux/skbuff.h1
2 files changed, 9 insertions, 1 deletions
diff --git a/include/linux/icmp.h b/include/linux/icmp.h
index 24da4fbc1a2f..cd3017a15789 100644
--- a/include/linux/icmp.h
+++ b/include/linux/icmp.h
@@ -82,6 +82,15 @@ struct icmphdr {
82 } un; 82 } un;
83}; 83};
84 84
85#ifdef __KERNEL__
86#include <linux/skbuff.h>
87
88static inline struct icmphdr *icmp_hdr(const struct sk_buff *skb)
89{
90 return (struct icmphdr *)skb->h.raw;
91}
92#endif
93
85/* 94/*
86 * constants for (set|get)sockopt 95 * constants for (set|get)sockopt
87 */ 96 */
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index cb1ac48cc808..e580416de78a 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -238,7 +238,6 @@ struct sk_buff {
238 238
239 union { 239 union {
240 struct tcphdr *th; 240 struct tcphdr *th;
241 struct icmphdr *icmph;
242 struct iphdr *ipiph; 241 struct iphdr *ipiph;
243 struct ipv6hdr *ipv6h; 242 struct ipv6hdr *ipv6h;
244 unsigned char *raw; 243 unsigned char *raw;