Skip to content

Commit 42adac2

Browse files
committed
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 57e42ac)
1 parent f32fd67 commit 42adac2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel-module/xt_RTPENGINE.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4020,7 +4020,11 @@ static int send_proxy_packet4(struct sk_buff *skb, struct re_address *src, struc
40204020
if (!net)
40214021
goto drop;
40224022

4023+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,10,0)
4024+
rt = ip_route_output(net, dst->u.ipv4, src->u.ipv4, tos, 0, 0);
4025+
#else
40234026
rt = ip_route_output(net, dst->u.ipv4, src->u.ipv4, tos, 0);
4027+
#endif
40244028
if (IS_ERR(rt))
40254029
goto drop;
40264030
skb_dst_drop(skb);

0 commit comments

Comments
 (0)