From b2c73d19cc5ae37e8fb29b01c44124edd0a4e9ea Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 9 Dec 2020 18:43:16 +0100 Subject: tests: icmp, icmpv6: check we don't add second dependency If dependency is already fulfilled, do not add another one. Signed-off-by: Florian Westphal --- tests/py/ip/icmp.t.payload.ip | 12 ++++++++++++ 1 file changed, 12 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 e238c4bb..d75d12a0 100644 --- a/tests/py/ip/icmp.t.payload.ip +++ b/tests/py/ip/icmp.t.payload.ip @@ -514,6 +514,18 @@ ip [ payload load 4b @ transport header + 4 => reg 1 ] [ cmp eq reg 1 0x02000100 ] +# icmp type { echo-reply, echo-request} icmp id 1 icmp sequence 2 +__set%d test-ip4 3 +__set%d test-ip4 0 + element 00000000 : 0 [end] element 00000008 : 0 [end] +ip + [ meta load l4proto => reg 1 ] + [ cmp eq reg 1 0x00000001 ] + [ payload load 1b @ transport header + 0 => reg 1 ] + [ lookup reg 1 set __set%d ] + [ payload load 4b @ transport header + 4 => reg 1 ] + [ cmp eq reg 1 0x02000100 ] + # icmp mtu 33 ip test-ip4 input [ meta load l4proto => reg 1 ] -- cgit v1.2.3