]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
nft: Use the current name for the desired NFTNL_EXPR_BITWISE_OP
authorPhil Sutter <phil@nwl.cc>
Sat, 14 Feb 2026 15:05:03 +0000 (16:05 +0100)
committerPhil Sutter <phil@nwl.cc>
Thu, 5 Mar 2026 22:17:18 +0000 (23:17 +0100)
Since refreshing nf_tables.h, the new name is available.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft.c

index da008070e3016eac2d0498bd406fd62aa7353bf1..5c9cc6b389cfffd8a906af932798b0054b081106 100644 (file)
@@ -4035,7 +4035,7 @@ static int nft_is_expr_compatible(struct nftnl_expr *expr, void *data)
                return 0;
 
        if (!strcmp(name, "bitwise") &&
-           nftnl_expr_get_u32(expr, NFTNL_EXPR_BITWISE_OP) == NFT_BITWISE_BOOL)
+           nftnl_expr_get_u32(expr, NFTNL_EXPR_BITWISE_OP) == NFT_BITWISE_MASK_XOR)
                return 0;
 
        return -1;