From 3eb14fd93093c5e084d3ac1c4b0171cf80fb264f Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Mon, 1 Feb 2021 22:44:25 +0100 Subject: tests: add icmp/6 test where dependency should be left alone These tests fail: nft should leave the type as-is. Signed-off-by: Florian Westphal --- tests/py/ip/icmp.t.json | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'tests/py/ip/icmp.t.json') diff --git a/tests/py/ip/icmp.t.json b/tests/py/ip/icmp.t.json index 9691f072..12b53b0f 100644 --- a/tests/py/ip/icmp.t.json +++ b/tests/py/ip/icmp.t.json @@ -1843,3 +1843,31 @@ } } ] + +# icmp code 1 icmp type 2 +[ + { + "match": { + "left": { + "payload": { + "field": "type", + "protocol": "icmp" + } + }, + "op": "==", + "right": 2 + } + }, + { + "match": { + "left": { + "payload": { + "field": "code", + "protocol": "icmp" + } + }, + "op": "==", + "right": "host-unreachable" + } + } +] -- cgit v1.2.3