-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathel8_fix.patch
22 lines (21 loc) · 1.19 KB
/
el8_fix.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- xtables-addons-3.27/extensions/compat_xtables.h
+++ xtables-addons-3.27/extensions/compat_xtables.h
@@ -21,7 +21,7 @@
#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, 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)
+ LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0) && 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))
--- xtables-addons-3.27/extensions/xt_ipp2p.c
+++ xtables-addons-3.27/extensions/xt_ipp2p.c
@@ -19,7 +19,7 @@ MODULE_AUTHOR("Eicke Friedrich/Klaus Deg
MODULE_DESCRIPTION("An extension to iptables to identify P2P traffic.");
MODULE_LICENSE("GPL");
-#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 1, 0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 18, 0)
static inline unsigned int
ip_transport_len(const struct sk_buff *skb)
{