datapath: Fix IPv6 fragment expiry crash.
[cascardo/ovs.git] / datapath / linux / compat / include / linux / ipv6.h
1 #ifndef __LINUX_IPV6_WRAPPER_H
2 #define __LINUX_IPV6_WRAPPER_H 1
3
4 #include_next <linux/ipv6.h>
5
6 struct frag_queue;
7 struct inet_frags;
8
9 #ifndef HAVE_SKBUFF_HEADER_HELPERS
10 static inline struct ipv6hdr *ipv6_hdr(const struct sk_buff *skb)
11 {
12         return (struct ipv6hdr *)skb_network_header(skb);
13 }
14 #endif
15
16 #if LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0)
17 void rpl_ip6_expire_frag_queue(struct net *net, struct frag_queue *fq,
18                                struct inet_frags *frags);
19 #define ip6_expire_frag_queue rpl_ip6_expire_frag_queue
20 #endif
21
22 #endif