I have a quick fix for xt_ECHO.c (attached). There is a problem with using the code from xtables-addons 3.15:

99a100,102
> #if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
> security_skb_classify_flow((struct sk_buff *)oldskb, flowi6_to_flowi_common(&fl));
> #else
100a104
> #endif

The change in KERNEL_VERSION(5, 10, 0, 16). I don't know my way around these macros, so I just replaced the line, making this patch incompatible to 5.10.0-15.

Sorry,
Lupe Christoph
--- extensions/xt_ECHO.c.orig   2020-11-26 09:57:43.000000000 +0100
+++ extensions/xt_ECHO.c        2022-07-10 17:10:14.129598097 +0200
@@ -97,7 +97,7 @@
        memcpy(&fl.daddr, &newip->daddr, sizeof(fl.daddr));
        fl.fl6_sport = newudp->source;
        fl.fl6_dport = newudp->dest;
-       security_skb_classify_flow((struct sk_buff *)oldskb, flowi6_to_flowi(&fl));
+       security_skb_classify_flow((struct sk_buff *)oldskb, flowi6_to_flowi_common(&fl));
        dst = ip6_route_output(net, NULL, &fl);
        if (dst == NULL || dst->error != 0) {
                dst_release(dst);

Reply via email to