Skip to content

Commit 9f9799b

Browse files
committed
linux 5.10 compatibility
1 parent 4657a61 commit 9f9799b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ts3init_target.c

+6
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,13 @@ ts3init_send_ipv6_reply(struct sk_buff *oldskb, const struct xt_action_param *pa
9595
memcpy(&fl.daddr, &ip->daddr, sizeof(fl.daddr));
9696
fl.fl6_sport = udp->source;
9797
fl.fl6_dport = udp->dest;
98+
99+
#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
98100
security_skb_classify_flow((struct sk_buff *)oldskb, flowi6_to_flowi(&fl));
101+
#else
102+
security_skb_classify_flow((struct sk_buff *)oldskb, flowi6_to_flowi_common(&fl));
103+
#endif
104+
99105
dst = ip6_route_output(net, NULL, &fl);
100106
if (unlikely(dst == NULL || dst->error != 0)) {
101107
dst_release(dst);

0 commit comments

Comments
 (0)