summaryrefslogtreecommitdiffstats
path: root/tests/set/anon-autoname-rule_ok.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/set/anon-autoname-rule_ok.t')
-rw-r--r--tests/set/anon-autoname-rule_ok.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/set/anon-autoname-rule_ok.t b/tests/set/anon-autoname-rule_ok.t
new file mode 100644
index 0000000..839cf1f
--- /dev/null
+++ b/tests/set/anon-autoname-rule_ok.t
@@ -0,0 +1,11 @@
+add_table(NFPROTO_IPV4, "test", NULL, NULL, NULL);
+add_chain("test", "0x1", NULL, NULL, NULL);
+
+add_set("__set%d", "0x9", "2", "13", NULL, "NFT_DATA_VERDICT", NULL, NULL, NULL, "0x1", NULL, NULL, NULL, NULL, NULL);
+add_elem("0016", NULL, NULL, "NFT_JUMP", "test", NULL, NULL, NULL, NULL, NULL);
+
+add_chain("test2", "0x2", NULL, NULL, NULL);
+add_rule("test2", "0x1", NULL, NULL, NULL);
+payload(NULL, "NFT_REG_1", "NFT_PAYLOAD_TRANSPORT_HEADER", "2", "2", NULL, NULL, NULL);
+lookup("NFT_REG_1", "NFT_REG_VERDICT", "__set%d", "0x1");
+commit();