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,port.t.list4 | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/hash:ip,port.t.list4 (limited to 'tests/hash:ip,port.t.list4') diff --git a/tests/hash:ip,port.t.list4 b/tests/hash:ip,port.t.list4 new file mode 100644 index 0000000..c28987a --- /dev/null +++ b/tests/hash:ip,port.t.list4 @@ -0,0 +1,9 @@ +Name: test +Type: hash:ip,port +Revision: 7 +Header: family inet hashsize 128 maxelem 65536 timeout 4 bucketsize 12 initval 0x18b2277a netmask 24 +Size in memory: 408 +References: 0 +Number of entries: 1 +Members: +200.100.10.0,tcp:22 timeout 0 -- cgit v1.2.3