]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
compat_xtables: employ route_me_harder define for 4.19 and 5.4 too
authorJan Engelhardt <jengelh@inai.de>
Fri, 20 Nov 2020 12:01:17 +0000 (13:01 +0100)
committerJan Engelhardt <jengelh@inai.de>
Fri, 20 Nov 2020 12:11:38 +0000 (13:11 +0100)
The API change found its way into some more Linux stable series.

extensions/compat_xtables.h

index 9b98d26e20237ab7d7f3b26849964f7bd9136cb7..2ac8d52d75db0eeaabfdc7c51cbc99238d67216d 100644 (file)
@@ -22,7 +22,9 @@
 #endif
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0) || \
-    LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 9) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0)
+    LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 9) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 10, 0) || \
+    LINUX_VERSION_CODE >= KERNEL_VERSION(5, 4, 78) && LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0) || \
+    LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 158) && LINUX_VERSION_CODE < KERNEL_VERSION(4, 20, 0)
 #else
 #      define ip_route_me_harder(xnet, xsk, xskb, xaddrtype) ip_route_me_harder((xnet), (xskb), (xaddrtype))
 #      define ip6_route_me_harder(xnet, xsk, xskb) ip6_route_me_harder((xnet), (xskb))