]> git.ipfire.org Git - thirdparty/nftables.git/commit
nft: swap key and direction in ct_dir syntax
authorFlorian Westphal <fw@strlen.de>
Thu, 7 Jan 2016 12:23:33 +0000 (13:23 +0100)
committerFlorian Westphal <fw@strlen.de>
Thu, 7 Jan 2016 12:23:33 +0000 (13:23 +0100)
commit757b3ab08b8b22f230fb8e481bec78ecbfbb335a
tree6da3963f04e13807ed3f660639a177306b014155
parentc2494dd6daac9a91f090504de6d38b7f404f0c1f
nft: swap key and direction in ct_dir syntax

old: ct saddr original 1.2.3.4
new: ct original saddr 1.2.3.4

The advantage is that this allows to add ct keys where direction is optional
without creating ambiguities in the parser.

So we can have
ct packets gt 42
ct original packets gt 42

Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/ct.c
src/parser_bison.y
tests/py/any/ct.t
tests/py/ip/ct.t
tests/py/ip/ct.t.payload