diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-05-24 20:54:37 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-05-24 21:14:12 +0200 |
commit | 54aa3de7b49a20a65e0fa0a36204bd387d4f40c9 (patch) | |
tree | 5d1bcf1c9570b55a1a3a9c243df52e7ed7aef027 /tests/py/ip6/hbh.t.json | |
parent | d03bcb669c0c645190df9bd166f53380bcac7862 (diff) |
Revert "tests: py: remove single-value-anon-set test cases"
This reverts commit d03bcb669c0c645190df9bd166f53380bcac7862.
Diffstat (limited to 'tests/py/ip6/hbh.t.json')
-rw-r--r-- | tests/py/ip6/hbh.t.json | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/tests/py/ip6/hbh.t.json b/tests/py/ip6/hbh.t.json index 68670a3b..441d3bfe 100644 --- a/tests/py/ip6/hbh.t.json +++ b/tests/py/ip6/hbh.t.json @@ -112,6 +112,46 @@ } ] +# hbh hdrlength { 33-55} +[ + { + "match": { + "left": { + "exthdr": { + "field": "hdrlength", + "name": "hbh" + } + }, + "op": "==", + "right": { + "set": [ + { "range": [ 33, 55 ] } + ] + } + } + } +] + +# hbh hdrlength != { 33-55} +[ + { + "match": { + "left": { + "exthdr": { + "field": "hdrlength", + "name": "hbh" + } + }, + "op": "!=", + "right": { + "set": [ + { "range": [ 33, 55 ] } + ] + } + } + } +] + # hbh nexthdr {esp, ah, comp, udp, udplite, tcp, dccp, sctp, icmpv6} [ { @@ -282,6 +322,46 @@ } ] +# hbh nexthdr { 33-55} +[ + { + "match": { + "left": { + "exthdr": { + "field": "nexthdr", + "name": "hbh" + } + }, + "op": "==", + "right": { + "set": [ + { "range": [ 33, 55 ] } + ] + } + } + } +] + +# hbh nexthdr != { 33-55} +[ + { + "match": { + "left": { + "exthdr": { + "field": "nexthdr", + "name": "hbh" + } + }, + "op": "!=", + "right": { + "set": [ + { "range": [ 33, 55 ] } + ] + } + } + } +] + # hbh nexthdr ip [ { |