diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-04-25 18:14:07 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-04-25 18:14:07 +0200 |
commit | 2aa0b0a3696ea78282f6b6eeb7748923ab3a1109 (patch) | |
tree | 06b19fa1b7c27c289d514c4479320b014baceaf2 /tests | |
parent | 8398bd1e9fc722d88b96c9b93b1171c0a5bafa2d (diff) |
tests: py: missing json updates on ct and meta mark payload expression
Add json output, it is missing in the original tests/py update.
Fixes: 8221d86e616b ("tests: py: add test-cases for ct and packet mark payload expressions")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/py/ip6/meta.t.json | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/tests/py/ip6/meta.t.json b/tests/py/ip6/meta.t.json index 5bd8b07b..1a2394d8 100644 --- a/tests/py/ip6/meta.t.json +++ b/tests/py/ip6/meta.t.json @@ -252,3 +252,62 @@ } } ] + +# meta mark set ip6 dscp << 2 | 0x10 +[ + { + "mangle": { + "key": { + "meta": { + "key": "mark" + } + }, + "value": { + "|": [ + { + "<<": [ + { + "payload": { + "field": "dscp", + "protocol": "ip6" + } + }, + 2 + ] + }, + 16 + ] + } + } + } +] + +# meta mark set ip6 dscp << 26 | 0x10 +[ + { + "mangle": { + "key": { + "meta": { + "key": "mark" + } + }, + "value": { + "|": [ + { + "<<": [ + { + "payload": { + "field": "dscp", + "protocol": "ip6" + } + }, + 26 + ] + }, + 16 + ] + } + } + } +] + |