From cda5c8c26f329bbd3655fd7d1af4e1eec55ec397 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Thu, 29 Aug 2019 11:36:20 +0200 Subject: src: json: add support for element deletion also add a test case. Fixes: a87f2a2227be2 ("netfilter: support for element deletion") Signed-off-by: Florian Westphal Acked-by: Phil Sutter --- tests/py/ip6/sets.t.payload.netdev | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/py/ip6/sets.t.payload.netdev') diff --git a/tests/py/ip6/sets.t.payload.netdev b/tests/py/ip6/sets.t.payload.netdev index 0dfabb77..dab74159 100644 --- a/tests/py/ip6/sets.t.payload.netdev +++ b/tests/py/ip6/sets.t.payload.netdev @@ -31,3 +31,11 @@ netdev test-netdev ingress [ payload load 16b @ network header + 24 => reg 2 ] [ dynset add reg_key 1 set set5 ] +# delete @set5 { ip6 saddr . ip6 daddr } +netdev test-netdev ingress + [ meta load protocol => reg 1 ] + [ cmp eq reg 1 0x0000dd86 ] + [ payload load 16b @ network header + 8 => reg 1 ] + [ payload load 16b @ network header + 24 => reg 2 ] + [ dynset delete reg_key 1 set set5 ] + -- cgit v1.2.3