summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-05-21 16:56:12 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-05-21 22:02:57 -0600
commitbe7e031f71c4c92400a6d9b456e537b8feca6290 (patch)
treedc5e77db08dac26b419c795c447b9ca2660e5067
parent543575ebc88cb9771eed34c66036abf978fffbe6 (diff)
compat: backport skb_scrub_packet to 3.11
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--src/compat/compat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compat/compat.h b/src/compat/compat.h
index 931f35b..2fbfd8c 100644
--- a/src/compat/compat.h
+++ b/src/compat/compat.h
@@ -222,6 +222,8 @@ static inline void skb_scrub_packet(struct sk_buff *skb, bool xnet)
skb_orphan(skb);
skb->mark = 0;
}
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) && LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)
+#define skb_scrub_packet(a, b) skb_scrub_packet(a)
#endif
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 12, 0) || defined(ISUBUNTU1404)) && !defined(ISRHEL7)