summaryrefslogtreecommitdiff
path: root/datapath/linux-2.6/compat-2.6/include/linux/icmp.h
blob: 89b354e4c700a36512add2adb4cb34e9a09e8975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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