diff options
author | Vishwanath Pai <vpai@akamai.com> | 2022-11-10 16:31:31 -0500 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2022-11-20 21:58:48 +0100 |
commit | 31fc637c92b83ba75917539015b80b5d91aa2216 (patch) | |
tree | 20b63c090a4a155222b4a2bb4dec263faed12904 /tests/hash:ip,port.t.list6 | |
parent | 4f75ee8692c08bd6b03b08ba5bf63339149a3005 (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:ip,port.t.list6')
-rw-r--r-- | tests/hash:ip,port.t.list6 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/hash:ip,port.t.list6 b/tests/hash:ip,port.t.list6 new file mode 100644 index 0000000..33969cf --- /dev/null +++ b/tests/hash:ip,port.t.list6 @@ -0,0 +1,9 @@ +Name: test +Type: hash:ip,port +Revision: 7 +Header: family inet hashsize 128 maxelem 65536 timeout 4 bucketsize 12 initval 0x2fcffdca bitmask 255.255.255.0 +Size in memory: 408 +References: 0 +Number of entries: 1 +Members: +200.100.10.0,tcp:22 timeout 0 |