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 57e42acd30)
mr12.4
Richard Fuchs 9 months ago
parent 8f5d929e4c
commit 95181add0e

@ -4988,7 +4988,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);

Loading…
Cancel
Save