nicira-ext: Support matching IPv6 traffic.
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / linux / icmpv6.h
diff --git a/datapath/linux-2.6/compat-2.6/include/linux/icmpv6.h b/datapath/linux-2.6/compat-2.6/include/linux/icmpv6.h
new file mode 100644 (file)
index 0000000..f005a48
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef __LINUX_ICMPV6_WRAPPER_H
+#define __LINUX_ICMPV6_WRAPPER_H 1
+
+#include_next <linux/icmpv6.h>
+
+#ifndef HAVE_ICMP6_HDR
+static inline struct icmp6hdr *icmp6_hdr(const struct sk_buff *skb)
+{
+        return (struct icmp6hdr *)skb_transport_header(skb);
+}
+#endif
+
+#endif