7d51491a9c1bada89673205e005ab2e02e4f1126
[cascardo/ovs.git] / datapath / linux / compat / include / net / netfilter / ipv6 / nf_defrag_ipv6.h
1 #ifndef _NF_DEFRAG_IPV6_WRAPPER_H
2 #define _NF_DEFRAG_IPV6_WRAPPER_H
3
4 #include <linux/kconfig.h>
5
6 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)
7 #include_next <net/netfilter/ipv6/nf_defrag_ipv6.h>
8 #endif
9
10 #if LINUX_VERSION_CODE < KERNEL_VERSION(4,3,0)
11 #if defined(OVS_FRAGMENT_BACKPORT)
12 struct sk_buff *rpl_nf_ct_frag6_gather(struct sk_buff *skb, u32 user);
13 int __init rpl_nf_ct_frag6_init(void);
14 void rpl_nf_ct_frag6_cleanup(void);
15 void rpl_nf_ct_frag6_consume_orig(struct sk_buff *skb);
16 #else /* !OVS_FRAGMENT_BACKPORT */
17 static inline struct sk_buff *rpl_nf_ct_frag6_gather(struct sk_buff *skb,
18                                                      u32 user)
19 {
20         return skb;
21 }
22 static inline int __init rpl_nf_ct_frag6_init(void) { return 0; }
23 static inline void rpl_nf_ct_frag6_cleanup(void) { }
24 static inline void rpl_nf_ct_frag6_consume_orig(struct sk_buff *skb) { }
25 #endif /* OVS_FRAGMENT_BACKPORT */
26 #define nf_ct_frag6_gather rpl_nf_ct_frag6_gather
27 #define nf_ct_frag6_init rpl_nf_ct_frag6_init
28 #define nf_ct_frag6_cleanup rpl_nf_ct_frag6_cleanup
29 #define nf_ct_frag6_consume_orig rpl_nf_ct_frag6_consume_orig
30 #endif /* < 4.3 */
31
32 #endif /* __NF_DEFRAG_IPV6_WRAPPER_H */