From f98185fd18079cbf4041c24c47a6111fc873a7bc Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 3 Jun 2021 23:37:29 +0200 Subject: tests: ct: prefer normal cmp Followup patch will replace the { 1.2.3.4 } with single cmp, so this will cause an error when the netlink dump gets compared. Signed-off-by: Florian Westphal --- tests/py/inet/ct.t.payload | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests/py/inet/ct.t.payload') diff --git a/tests/py/inet/ct.t.payload b/tests/py/inet/ct.t.payload index 3b274f8c..f7a2ef27 100644 --- a/tests/py/inet/ct.t.payload +++ b/tests/py/inet/ct.t.payload @@ -10,11 +10,8 @@ inet test-inet input [ ct load src_ip6 => reg 1 , dir original ] [ cmp eq reg 1 0x00000000 0x00000000 0x00000000 0x01000000 ] -# ct original ip daddr {1.2.3.4} accept -__set%d test-inet 3 size 1 -__set%d test-inet 0 - element 04030201 : 0 [end] +# ct original ip daddr 1.2.3.4 accept inet test-inet input [ ct load dst_ip => reg 1 , dir original ] - [ lookup reg 1 set __set%d ] + [ cmp eq reg 1 0x04030201 ] [ immediate reg 0 accept ] -- cgit v1.2.3