]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
xt_ECHO: use flowi6_to_flowi_common starting Linux 5.10.121
authorThomas Voegtle <tv@lio96.de>
Thu, 9 Jun 2022 13:19:22 +0000 (15:19 +0200)
committerJan Engelhardt <jengelh@inai.de>
Thu, 9 Jun 2022 18:55:03 +0000 (20:55 +0200)
Upstream commit 3df98d79215a "lsm,selinux: pass flowi_common instead of flowi
to the LSM hooks" was backported to Linux 5.10.121 and you can't use flowi
anymore.

Lower check to 5.10.121.

Signed-off-by: Thomas Voegtle <tv@lio96.de>
extensions/xt_ECHO.c

index 1ead749d08c2be69a199f640df91e640c2d6248f..cdd9238d1bebad7a720eed93b543c4f595747f79 100644 (file)
@@ -101,7 +101,7 @@ echo_tg6(struct sk_buff *oldskb, const struct xt_action_param *par)
        memcpy(&fl.daddr, &newip->daddr, sizeof(fl.daddr));
        fl.fl6_sport = newudp->source;
        fl.fl6_dport = newudp->dest;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 121)
        security_skb_classify_flow((struct sk_buff *)oldskb, flowi6_to_flowi_common(&fl));
 #else
        security_skb_classify_flow((struct sk_buff *)oldskb, flowi6_to_flowi(&fl));