commit 50eb10eaba30e8224337723e9ff4b08c3a9f6fbf
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Sun Mar 21 12:31:05 2021 +0100
Add backport patch
..._ndo_send-functions-were-backported-exten.patch | 26 ++++++++++++++++++++++
1 file changed, 26 insertions(+)
---
diff --git a/0001-compat-icmp_ndo_send-functions-were-backported-exten.patch
b/0001-compat-icmp_ndo_send-functions-were-backported-exten.patch
new file mode 100644
index 0000000..bfa440a
--- /dev/null
+++ b/0001-compat-icmp_ndo_send-functions-were-backported-exten.patch
@@ -0,0 +1,26 @@
+From 122f06bfd8fc7b06a0899fa9adc4ce8e06900d98 Mon Sep 17 00:00:00 2001
+From: "Jason A. Donenfeld" <Jason(a)zx2c4.com>
+Date: Sun, 7 Mar 2021 08:14:33 -0700
+Subject: [PATCH] compat: icmp_ndo_send functions were backported extensively
+
+Signed-off-by: Jason A. Donenfeld <Jason(a)zx2c4.com>
+---
+ src/compat/compat.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/compat/compat.h b/src/compat/compat.h
+index 3e8e005c81c6..022720420e81 100644
+--- a/src/compat/compat.h
++++ b/src/compat/compat.h
+@@ -932,7 +932,7 @@ static inline int skb_ensure_writable(struct sk_buff *skb, int
write_len)
+ }
+ #endif
+
+-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0) && LINUX_VERSION_CODE >=
KERNEL_VERSION(5, 5, 0)) || (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 102) &&
LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0)) || (LINUX_VERSION_CODE <
KERNEL_VERSION(4, 19, 178) && LINUX_VERSION_CODE >= KERNEL_VERSION(4, 15, 0))
|| (LINUX_VERSION_CODE < KERNEL_VERSION(4, 14, 223) && LINUX_VERSION_CODE >
KERNEL_VERSION(4, 10, 0)) || LINUX_VERSION_CODE < KERNEL_VERSION(4, 9, 259) ||
defined(ISRHEL8) || defined(ISUBUNTU1804)
+ #include <linux/icmpv6.h>
+ #include <net/icmp.h>
+ #if IS_ENABLED(CONFIG_NF_NAT)
+--
+2.30.2
+