From 68e21ac5b2f5f7e60d3e1b12a3a2a05ed542f6fa Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 11 Sep 2018 22:14:27 +0200 Subject: tests/py: Fix JSON for icmp*.t A recent change to ip/icmp.t and ip6/icmpv6.t did not update JSON equivalents accordingly, fix this. Fixes: 0f44d4f627535 ("proto: fix icmp/icmpv6 code datatype") Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- tests/py/ip/icmp.t.json.output | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests/py/ip/icmp.t.json.output') 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 [ { -- cgit v1.2.3