diff options
author | Florian Westphal <fw@strlen.de> | 2016-01-07 13:23:33 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2016-01-07 13:23:33 +0100 |
commit | 757b3ab08b8b22f230fb8e481bec78ecbfbb335a (patch) | |
tree | 6da3963f04e13807ed3f660639a177306b014155 /tests/py/any/ct.t | |
parent | c2494dd6daac9a91f090504de6d38b7f404f0c1f (diff) |
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>
Diffstat (limited to 'tests/py/any/ct.t')
-rw-r--r-- | tests/py/any/ct.t | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/py/any/ct.t b/tests/py/any/ct.t index 9434dc63..fd27a1da 100644 --- a/tests/py/any/ct.t +++ b/tests/py/any/ct.t @@ -109,3 +109,11 @@ ct state . ct mark { new . 0x12345678};ok ct state . ct mark { new . 0x12345678, new . 0x34127856, established . 0x12785634};ok ct direction . ct mark { original . 0x12345678};ok ct state . ct mark vmap { new . 0x12345678 : drop};ok + +# missing direction +ct saddr 1.2.3.4;fail + +# direction, but must be used without +ct original mark 42;fail +# swapped key and direction +ct mark original;fail |