nft crashes on restore. Signed-off-by: Florian Westphal <fw@xxxxxxxxx> --- tests/shell/testcases/nft-f/0025empty_dynset_0 | 16 ++++++++++++++++ .../testcases/nft-f/dumps/0025empty_dynset_0.nft | 12 ++++++++++++ 2 files changed, 28 insertions(+) create mode 100755 tests/shell/testcases/nft-f/0025empty_dynset_0 create mode 100644 tests/shell/testcases/nft-f/dumps/0025empty_dynset_0.nft diff --git a/tests/shell/testcases/nft-f/0025empty_dynset_0 b/tests/shell/testcases/nft-f/0025empty_dynset_0 new file mode 100755 index 000000000000..796628a7c69a --- /dev/null +++ b/tests/shell/testcases/nft-f/0025empty_dynset_0 @@ -0,0 +1,16 @@ +#!/bin/sh + +RULESET="table ip foo { + set inflows { + type ipv4_addr . inet_service . ifname . ipv4_addr . inet_service + flags dynamic + elements = { 10.1.0.3 . 39466 . \"veth1\" . 10.3.0.99 . 5201 counter packets 0 bytes 0 } + } + + set inflows6 { + type ipv6_addr . inet_service . ifname . ipv6_addr . inet_service + flags dynamic + } +}" + +$NFT -f - <<< "$RULESET" diff --git a/tests/shell/testcases/nft-f/dumps/0025empty_dynset_0.nft b/tests/shell/testcases/nft-f/dumps/0025empty_dynset_0.nft new file mode 100644 index 000000000000..559eb49fc2e1 --- /dev/null +++ b/tests/shell/testcases/nft-f/dumps/0025empty_dynset_0.nft @@ -0,0 +1,12 @@ +table ip foo { + set inflows { + type ipv4_addr . inet_service . ifname . ipv4_addr . inet_service + flags dynamic + elements = { 10.1.0.3 . 39466 . "veth1" . 10.3.0.99 . 5201 counter packets 0 bytes 0 } + } + + set inflows6 { + type ipv6_addr . inet_service . ifname . ipv6_addr . inet_service + flags dynamic + } +} -- 2.26.2