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.payload.ip | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/py/ip/icmp.t.payload.ip') diff --git a/tests/py/ip/icmp.t.payload.ip b/tests/py/ip/icmp.t.payload.ip index d75d12a0..97464a08 100644 --- a/tests/py/ip/icmp.t.payload.ip +++ b/tests/py/ip/icmp.t.payload.ip @@ -787,3 +787,9 @@ ip test-ip4 input [ lookup reg 1 set __set%d ] [ immediate reg 0 accept ] +# icmp code 1 icmp type 2 +ip + [ meta load l4proto => reg 1 ] + [ cmp eq reg 1 0x00000001 ] + [ payload load 2b @ transport header + 0 => reg 1 ] + [ cmp eq reg 1 0x00000102 ] -- cgit v1.2.3