From 9206ed97be77bf8d38497f2dc3b841baccf6a07f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Sun, 4 Aug 2024 18:16:31 -0400 Subject: [PATCH] MT#55283 fix compilation for kernel >=6.10 Closes #1845 Fixes: https://bugs.debian.org/1077839 Closes: #1077839 Change-Id: Iead85dca40931308b23815135e45ec94a9525c9c (cherry picked from commit 57e42acd308fb0280da60f3382ce77c3d7746853) (cherry picked from commit 95181add0e5cbf337d32e2aa848c8e7b27ab1772) (cherry picked from commit 6787dd73f1dced4395410ad68f37ee2f6c4ab2d1) --- kernel-module/xt_RTPENGINE.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel-module/xt_RTPENGINE.c b/kernel-module/xt_RTPENGINE.c index 406493d01..6afdc982d 100644 --- a/kernel-module/xt_RTPENGINE.c +++ b/kernel-module/xt_RTPENGINE.c @@ -3970,7 +3970,11 @@ static int send_proxy_packet4(struct sk_buff *skb, struct re_address *src, struc if (!net) goto drop; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,10,0) + rt = ip_route_output(net, dst->u.ipv4, src->u.ipv4, tos, 0, 0); +#else rt = ip_route_output(net, dst->u.ipv4, src->u.ipv4, tos, 0); +#endif if (IS_ERR(rt)) goto drop; skb_dst_drop(skb);