summaryrefslogtreecommitdiffstats
path: root/tests/hash:net,net.t.list4
diff options
context:
space:
mode:
authorVishwanath Pai <vpai@akamai.com>2022-11-10 16:31:31 -0500
committerJozsef Kadlecsik <kadlec@netfilter.org>2022-11-20 21:58:48 +0100
commit31fc637c92b83ba75917539015b80b5d91aa2216 (patch)
tree20b63c090a4a155222b4a2bb4dec263faed12904 /tests/hash:net,net.t.list4
parent4f75ee8692c08bd6b03b08ba5bf63339149a3005 (diff)
netfilter: ipset: add tests for the new bitmask feature
The hash:ip type had a test for netmask, add a similar test for bitmask feature as well, and add another test where bitmask is not a valid netmask. Repeat the same three tests for hash:ip,port and hash:net,net. Add a test to make sure bitmask and netmask options cannot be added at the same time. Signed-off-by: Vishwanath Pai <vpai@akamai.com> Signed-off-by: Jozsef Kadlecsik <kadlec@netfilter.org>
Diffstat (limited to 'tests/hash:net,net.t.list4')
-rw-r--r--tests/hash:net,net.t.list49
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hash:net,net.t.list4 b/tests/hash:net,net.t.list4
new file mode 100644
index 0000000..908cab6
--- /dev/null
+++ b/tests/hash:net,net.t.list4
@@ -0,0 +1,9 @@
+Name: test
+Type: hash:net,net
+Revision: 4
+Header: family inet hashsize 128 maxelem 65536 timeout 4 bucketsize 12 initval 0xb69e293e netmask 24
+Size in memory: 848
+References: 0
+Number of entries: 1
+Members:
+200.100.10.0,200.100.10.0 timeout 0