diff options
Diffstat (limited to 'src/compat/compat.h')
-rw-r--r-- | src/compat/compat.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h index dbb52d8..d6b5f31 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -1026,6 +1026,19 @@ static inline void skb_reset_redirect(struct sk_buff *skb) } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 14, 0) +#define skb_get_hash skb_get_rxhash +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 15, 0) +#define hash rxhash +#define l4_hash l4_rxhash +#endif + +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) +#define sw_hash ignore_df = 0; skb->nf_trace = skb->ooo_okay +#endif + #if defined(ISUBUNTU1604) || defined(ISRHEL7) #include <linux/siphash.h> #ifndef _WG_LINUX_SIPHASH_H |