From 3639ce913dc47974322e8c38b8567338acc45d7d Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 29 Sep 2021 10:55:19 +0200 Subject: cache: set on cache flags for nested notation Set on the cache flags for the nested notation too, this is fixing nft -f with two files, one that contains the set declaration and another that adds a rule that refers to such set. Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1474 Signed-off-by: Pablo Neira Ayuso --- tests/shell/testcases/nft-f/0029split_file_0 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 tests/shell/testcases/nft-f/0029split_file_0 (limited to 'tests/shell/testcases/nft-f') diff --git a/tests/shell/testcases/nft-f/0029split_file_0 b/tests/shell/testcases/nft-f/0029split_file_0 new file mode 100755 index 00000000..0cc547ab --- /dev/null +++ b/tests/shell/testcases/nft-f/0029split_file_0 @@ -0,0 +1,25 @@ +#!/bin/bash + +set -e + +RULESET="table inet filter { + set whitelist_v4 { + type ipv4_addr; + } + + chain prerouting { + type filter hook prerouting priority filter; + } +} +" + +$NFT -f - <<< "$RULESET" + +RULESET="table inet filter { + chain prerouting { + ip daddr @whitelist_v4 + } +} +" + +$NFT -f - <<< "$RULESET" -- cgit v1.2.3