diff options
Diffstat (limited to 'tests/py/ip')
-rw-r--r-- | tests/py/ip/icmp.t.json | 4 | ||||
-rw-r--r-- | tests/py/ip/icmp.t.json.output | 24 |
2 files changed, 26 insertions, 2 deletions
diff --git a/tests/py/ip/icmp.t.json b/tests/py/ip/icmp.t.json index 918621cb..4e172745 100644 --- a/tests/py/ip/icmp.t.json +++ b/tests/py/ip/icmp.t.json @@ -480,7 +480,7 @@ } ] -# icmp code != { 2, 4, 54, 33, 56} +# icmp code != { prot-unreachable, 4, 33, 54, 56} [ { "match": { @@ -493,7 +493,7 @@ "op": "!=", "right": { "set": [ - 2, + "prot-unreachable", 4, 33, 54, diff --git a/tests/py/ip/icmp.t.json.output b/tests/py/ip/icmp.t.json.output index 30637a13..e8045bb8 100644 --- a/tests/py/ip/icmp.t.json.output +++ b/tests/py/ip/icmp.t.json.output @@ -35,6 +35,30 @@ } ] +# icmp code { 2, 4, 54, 33, 56} +[ + { + "match": { + "left": { + "payload": { + "field": "code", + "protocol": "icmp" + } + }, + "op": "==", + "right": { + "set": [ + "prot-unreachable", + 4, + 33, + 54, + 56 + ] + } + } + } +] + # icmp checksum { 1111, 222, 343} accept [ { |