summaryrefslogtreecommitdiff
path: root/tests/hash:ip.t.list6
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:ip.t.list6
parent4f75ee8692c08bd6b03b08ba5bf63339149a3005 (diff)
downloadipset-31fc637c92b83ba75917539015b80b5d91aa2216.tar.gz
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:ip.t.list6')
-rw-r--r--tests/hash:ip.t.list69
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hash:ip.t.list6 b/tests/hash:ip.t.list6
new file mode 100644
index 0000000..44c5a49
--- /dev/null
+++ b/tests/hash:ip.t.list6
@@ -0,0 +1,9 @@
+Name: test
+Type: hash:ip
+Revision: 6
+Header: family inet hashsize 128 maxelem 65536 bitmask 255.255.0.255 bucketsize 12 initval 0xd7d821e1
+Size in memory: 296
+References: 0
+Number of entries: 1
+Members:
+1.2.0.4