summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0062set_connlimit_0
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell/testcases/sets/0062set_connlimit_0')
-rwxr-xr-xtests/shell/testcases/sets/0062set_connlimit_017
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/shell/testcases/sets/0062set_connlimit_0 b/tests/shell/testcases/sets/0062set_connlimit_0
index 4f95f383..48aa6fce 100755
--- a/tests/shell/testcases/sets/0062set_connlimit_0
+++ b/tests/shell/testcases/sets/0062set_connlimit_0
@@ -1,5 +1,7 @@
#!/bin/bash
+# NFT_TEST_REQUIRES(NFT_TEST_HAVE_set_expr)
+
set -e
RULESET="table ip x {
@@ -12,3 +14,18 @@ RULESET="table ip x {
}"
$NFT -f - <<< $RULESET
+
+RULESET="table ip x {
+ set new-connlimit {
+ type ipv4_addr
+ size 65535
+ flags dynamic
+ ct count over 20
+ elements = { 84.245.120.167 }
+ }
+}"
+
+$NFT -f - <<< $RULESET
+
+$NFT flush set ip x est-connlimit
+$NFT flush set ip x new-connlimit