]> git.ipfire.org Git - thirdparty/ipset.git/commit
netfilter: ipset: add tests for the new bitmask feature
authorVishwanath Pai <vpai@akamai.com>
Thu, 10 Nov 2022 21:31:31 +0000 (16:31 -0500)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Sun, 20 Nov 2022 20:58:48 +0000 (21:58 +0100)
commit31fc637c92b83ba75917539015b80b5d91aa2216
tree20b63c090a4a155222b4a2bb4dec263faed12904
parent4f75ee8692c08bd6b03b08ba5bf63339149a3005
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>
16 files changed:
tests/hash:ip,port.t
tests/hash:ip,port.t.list3 [new file with mode: 0644]
tests/hash:ip,port.t.list4 [new file with mode: 0644]
tests/hash:ip,port.t.list5 [new file with mode: 0644]
tests/hash:ip,port.t.list6 [new file with mode: 0644]
tests/hash:ip,port.t.list7 [new file with mode: 0644]
tests/hash:ip.t
tests/hash:ip.t.list4 [new file with mode: 0644]
tests/hash:ip.t.list5 [new file with mode: 0644]
tests/hash:ip.t.list6 [new file with mode: 0644]
tests/hash:net,net.t
tests/hash:net,net.t.list3 [new file with mode: 0644]
tests/hash:net,net.t.list4 [new file with mode: 0644]
tests/hash:net,net.t.list5 [new file with mode: 0644]
tests/hash:net,net.t.list6 [new file with mode: 0644]
tests/hash:net,net.t.list7 [new file with mode: 0644]