89b354e4c700a36512add2adb4cb34e9a09e8975
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / linux / icmp.h
1 #ifndef __LINUX_ICMP_WRAPPER_H
2 #define __LINUX_ICMP_WRAPPER_H 1
3
4 #include_next <linux/icmp.h>
5
6 #ifndef HAVE_SKBUFF_HEADER_HELPERS
7 static inline struct icmphdr *icmp_hdr(const struct sk_buff *skb)
8 {
9         return (struct icmphdr *)skb_transport_header(skb);
10 }
11 #endif
12
13 #endif