1 #ifndef _NF_DEFRAG_IPV6_WRAPPER_H
2 #define _NF_DEFRAG_IPV6_WRAPPER_H
4 #include <linux/kconfig.h>
6 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)
7 #include_next <net/netfilter/ipv6/nf_defrag_ipv6.h>
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,
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
32 #endif /* __NF_DEFRAG_IPV6_WRAPPER_H */