]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
ct: direction should be integer, not bitmask
authorFlorian Westphal <fw@strlen.de>
Mon, 17 Feb 2014 00:05:37 +0000 (01:05 +0100)
committerFlorian Westphal <fw@strlen.de>
Mon, 17 Feb 2014 23:14:42 +0000 (00:14 +0100)
should always generate cmp op (its enum 0, 1 in kernel).

Note: 'original,reply' will no longer work after this patch.

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/ct.c

index f893df9aee8923a40aeda161f379ba90de348546..79d4666c2d38b55750ef5b73856f85439082b4ea 100644 (file)
--- a/src/ct.c
+++ b/src/ct.c
@@ -61,7 +61,7 @@ static const struct datatype ct_dir_type = {
        .desc           = "conntrack direction",
        .byteorder      = BYTEORDER_INVALID,
        .size           = BITS_PER_BYTE,
-       .basetype       = &bitmask_type,
+       .basetype       = &integer_type,
        .sym_tbl        = &ct_dir_tbl,
 };