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/ip6/meta.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/ip6/meta.t.json')
-rw-r--r-- | tests/py/ip6/meta.t.json | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/py/ip6/meta.t.json b/tests/py/ip6/meta.t.json index e3c22353..29cf9fd2 100644 --- a/tests/py/ip6/meta.t.json +++ b/tests/py/ip6/meta.t.json @@ -8,6 +8,7 @@ "protocol": "icmpv6" } }, + "op": "==", "right": "nd-router-advert" } } @@ -20,6 +21,7 @@ "left": { "meta": { "key": "l4proto" } }, + "op": "==", "right": "ipv6-icmp" } }, @@ -31,6 +33,7 @@ "protocol": "icmpv6" } }, + "op": "==", "right": "nd-router-advert" } } @@ -43,6 +46,7 @@ "left": { "meta": { "key": "l4proto" } }, + "op": "==", "right": "icmp" } }, @@ -54,6 +58,7 @@ "protocol": "icmp" } }, + "op": "==", "right": "echo-request" } } @@ -66,6 +71,7 @@ "left": { "meta": { "key": "l4proto" } }, + "op": "==", "right": 1 } }, @@ -77,6 +83,7 @@ "protocol": "icmp" } }, + "op": "==", "right": "echo-request" } } @@ -92,6 +99,7 @@ "protocol": "icmp" } }, + "op": "==", "right": "echo-request" } } |