diff options
author | Fernando Fernandez Mancera <ffmancera@riseup.net> | 2019-09-09 21:52:47 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-09-10 21:59:23 +0200 |
commit | 805969ec63f22303d89a25dd8aa23d54dc65bf73 (patch) | |
tree | d82724a4d7097da391e8c1a165dca2c0a49cee06 /tests/py/any/ct.t.payload | |
parent | 860671662d3f7aeec156932aff648e04f0e2ec92 (diff) |
netlink_delinearize: fix wrong conversion to "list" in ct mark
We only prefer "list" representation in "ct event". For any other type of "ct"
use the "or" representation so nft prints "ct mark set ct mark | 0x00000001"
instead of "ct mark set ct mark,0x00000001".
Link: https://bugzilla.netfilter.org/show_bug.cgi?id=1364
Fixes: cb8f81ac3079 ("netlink_delinearize: prefer ct event set foo,bar over 'set foo|bar'")
Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/any/ct.t.payload')
-rw-r--r-- | tests/py/any/ct.t.payload | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/py/any/ct.t.payload b/tests/py/any/ct.t.payload index 86ac81cd..bdc6a70e 100644 --- a/tests/py/any/ct.t.payload +++ b/tests/py/any/ct.t.payload @@ -493,3 +493,9 @@ ip test-ip4 output [ ct load mark => reg 9 ] [ lookup reg 1 set __map%d dreg 0 ] +# ct mark set ct mark or 0x00000001 +ip test-ip4 output + [ ct load mark => reg 1 ] + [ bitwise reg 1 = (reg=1 & 0xfffffffe ) ^ 0x00000001 ] + [ ct set mark with reg 1 ] + |