diff options
Diffstat (limited to 'datapath/linux-2.6/compat-2.6/include/linux/icmp.h')
-rw-r--r-- | datapath/linux-2.6/compat-2.6/include/linux/icmp.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/datapath/linux-2.6/compat-2.6/include/linux/icmp.h b/datapath/linux-2.6/compat-2.6/include/linux/icmp.h new file mode 100644 index 000000000..89b354e4c --- /dev/null +++ b/datapath/linux-2.6/compat-2.6/include/linux/icmp.h @@ -0,0 +1,13 @@ +#ifndef __LINUX_ICMP_WRAPPER_H +#define __LINUX_ICMP_WRAPPER_H 1 + +#include_next <linux/icmp.h> + +#ifndef HAVE_SKBUFF_HEADER_HELPERS +static inline struct icmphdr *icmp_hdr(const struct sk_buff *skb) +{ + return (struct icmphdr *)skb_transport_header(skb); +} +#endif + +#endif |