Skip to contentSkip to conversation

tests: shell: add nft-f/0022variables_0 dump file

PATCH New Pablo Neira Ayuso 1 participant 1 message Aug 20, 2021 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 tests: shell: add nft-f/0022variables_0 dump file

Dump file was missing.

---
 .../nft-f/dumps/0022priority_variable_0.nft        |  5 -----
 .../testcases/nft-f/dumps/0022variables_0.nft      | 14 ++++++++++++++
 2 files changed, 14 insertions(+), 5 deletions(-)
 delete mode 100644 tests/shell/testcases/nft-f/dumps/0022priority_variable_0.nft
 create mode 100644 tests/shell/testcases/nft-f/dumps/0022variables_0.nft
tests/shell/testcases/nft-f/dumps/0022priority_variable_0.nft deleted +0 -5
deleted file mode 100644
index 2e9445995e06..000000000000
@@ -1,5 +0,0 @@
-table inet global {
-	chain prerouting {
-		type filter hook prerouting priority filter + 10; policy accept;
-	}
-}
tests/shell/testcases/nft-f/dumps/0022variables_0.nft new file +14 -0
new file mode 100644
index 000000000000..d30f4d53a3ce
@@ -0,0 +1,14 @@
+table ip x {
+	set y {
+		type ipv4_addr
+		size 65535
+		flags dynamic,timeout
+	}
+
+	chain z {
+		type filter hook input priority filter; policy accept;
+		add @y { ip saddr }
+		update @y { ip saddr timeout 30s }
+		ip saddr @y
+	}
+}
Signature · 1 line
2.20.1