diff options
author | Phil Sutter <phil@nwl.cc> | 2018-08-29 16:23:27 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-08-30 12:19:36 +0200 |
commit | 90d4ee087171e75d5313359ad6b6f1341e51ddc5 (patch) | |
tree | 59572c39aa334813b9b090fa46a57fedf9ff5aac /tests/py/inet/dccp.t.json | |
parent | 8f6e1c37e3e74e1fd490a0de5360ff1467c521cd (diff) |
JSON: Make match op mandatory, introduce 'in' operator
This special operator is required for cases where missing operator does
not lead to same results as equal operator, i.e. with bitmasks on RHS.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet/dccp.t.json')
-rw-r--r-- | tests/py/inet/dccp.t.json | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/py/inet/dccp.t.json b/tests/py/inet/dccp.t.json index 7d87966f..9260fbc5 100644 --- a/tests/py/inet/dccp.t.json +++ b/tests/py/inet/dccp.t.json @@ -8,6 +8,7 @@ "protocol": "dccp" } }, + "op": "==", "right": { "range": [ 21, 35 ] } @@ -43,6 +44,7 @@ "protocol": "dccp" } }, + "op": "==", "right": { "set": [ 23, @@ -86,6 +88,7 @@ "protocol": "dccp" } }, + "op": "==", "right": { "set": [ { "range": [ 20, 50 ] } @@ -105,6 +108,7 @@ "protocol": "dccp" } }, + "op": "==", "right": { "range": [ "ftp-data", "re-mail-ck" ] } @@ -122,6 +126,7 @@ "protocol": "dccp" } }, + "op": "==", "right": { "range": [ 20, 50 ] } @@ -139,6 +144,7 @@ "protocol": "dccp" } }, + "op": "==", "right": { "set": [ { "range": [ 20, 50 ] } @@ -178,6 +184,7 @@ "protocol": "dccp" } }, + "op": "==", "right": { "set": [ 23, @@ -221,6 +228,7 @@ "protocol": "dccp" } }, + "op": "==", "right": { "set": [ { "range": [ 20, 50 ] } @@ -260,6 +268,7 @@ "protocol": "dccp" } }, + "op": "==", "right": { "set": [ "request", @@ -317,6 +326,7 @@ "protocol": "dccp" } }, + "op": "==", "right": "request" } } |