Skip to content

Commit db6c9fb

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) (cherry picked from commit 95181ad)
1 parent 07244a2 commit db6c9fb

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
@@ -4988,7 +4988,11 @@ static int send_proxy_packet4(struct sk_buff *skb, struct re_address *src, struc
49884988
if (!net)
49894989
goto drop;
49904990

4991+
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,10,0)
4992+
rt = ip_route_output(net, dst->u.ipv4, src->u.ipv4, tos, 0, 0);
4993+
#else
49914994
rt = ip_route_output(net, dst->u.ipv4, src->u.ipv4, tos, 0);
4995+
#endif
49924996
if (IS_ERR(rt))
49934997
goto drop;
49944998
skb_dst_drop(skb);

0 commit comments

Comments
 (0)