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.t.list4 | |
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.t.list4')
-rw-r--r-- | tests/hash:ip.t.list4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/hash:ip.t.list4 b/tests/hash:ip.t.list4 new file mode 100644 index 0000000..5f92afa --- /dev/null +++ b/tests/hash:ip.t.list4 @@ -0,0 +1,11 @@ +Name: test +Type: hash:ip +Revision: 5 +Header: family inet hashsize 128 maxelem 65536 bitmask 255.255.255.0 timeout 4 bucketsize 12 initval 0xfe970e91 +Size in memory: 528 +References: 0 +Number of entries: 3 +Members: +192.168.68.0 timeout 3 +2.0.0.0 timeout 3 +200.100.10.0 timeout 0 |