From dfc0e0a6f4ae386cd5ad516356355e4fc790e60e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 13 Jun 2018 04:30:44 +0200 Subject: compat: backport ipvs_reset --- src/compat/compat.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/compat/compat.h b/src/compat/compat.h index 2853c09..f040f04 100644 --- a/src/compat/compat.h +++ b/src/compat/compat.h @@ -591,6 +591,17 @@ static inline void *skb_put_data(struct sk_buff *skb, const void *data, unsigned } #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 0) +#include +static inline void __wgcompat_ipvs_reset(struct sk_buff *skb) +{ +#if IS_ENABLED(CONFIG_IP_VS) + skb->ipvs_property = 0; +#endif +} +#define ipvs_reset __wgcompat_ipvs_reset +#endif + /* https://lkml.org/lkml/2017/6/23/790 */ #if IS_ENABLED(CONFIG_NF_CONNTRACK) #include -- cgit v1.2.3-59-g8ed1b