From 31fc637c92b83ba75917539015b80b5d91aa2216 Mon Sep 17 00:00:00 2001 From: Vishwanath Pai Date: Thu, 10 Nov 2022 16:31:31 -0500 Subject: 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 Signed-off-by: Jozsef Kadlecsik --- tests/hash:ip.t.list5 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/hash:ip.t.list5 (limited to 'tests/hash:ip.t.list5') diff --git a/tests/hash:ip.t.list5 b/tests/hash:ip.t.list5 new file mode 100644 index 0000000..9a29e75 --- /dev/null +++ b/tests/hash:ip.t.list5 @@ -0,0 +1,9 @@ +Name: test +Type: hash:ip +Revision: 5 +Header: family inet hashsize 128 maxelem 65536 bitmask 255.255.255.0 timeout 4 bucketsize 12 initval 0xbc66e38a +Size in memory: 528 +References: 0 +Number of entries: 1 +Members: +200.100.10.0 timeout 0 -- cgit v1.2.3