mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-28 12:02:04 +01:00
27 lines
1.2 KiB
Diff
27 lines
1.2 KiB
Diff
diff --git a/kernel-module/xt_RTPENGINE.c b/kernel-module/xt_RTPENGINE.c
|
|
index c12edcd..c5aacc7 100644
|
|
--- a/kernel-module/xt_RTPENGINE.c
|
|
+++ b/kernel-module/xt_RTPENGINE.c
|
|
@@ -3351,7 +3351,9 @@ static int send_proxy_packet4(struct sk_buff *skb, struct re_address *src, struc
|
|
uh->check = CSUM_MANGLED_0;
|
|
|
|
skb->protocol = htons(ETH_P_IP);
|
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,78)
|
|
+ if (ip_route_me_harder(par->state->net, par->state->sk, skb, RTN_UNSPEC))
|
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
|
|
if (ip_route_me_harder(par->state->net, skb, RTN_UNSPEC))
|
|
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0)
|
|
if (ip_route_me_harder(par->net, skb, RTN_UNSPEC))
|
|
@@ -3447,7 +3449,9 @@ static int send_proxy_packet6(struct sk_buff *skb, struct re_address *src, struc
|
|
uh->check = CSUM_MANGLED_0;
|
|
|
|
skb->protocol = htons(ETH_P_IPV6);
|
|
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,4,78)
|
|
+ if (ip6_route_me_harder(par->state->net, par->state->sk, skb))
|
|
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
|
|
if (ip6_route_me_harder(par->state->net, skb))
|
|
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0)
|
|
if (ip6_route_me_harder(par->net, skb))
|