diff options
author | Jozsef Kadlecsik <kadlec@netfilter.org> | 2022-11-21 13:20:05 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@netfilter.org> | 2022-11-21 13:20:05 +0100 |
commit | c11c24887a6bf35efa64dd48140d8e9b523d0790 (patch) | |
tree | f22eb6e4d85f8504283c69ab68f9a9688b116a60 /tests | |
parent | d0e0631ff8448841571cb2be31c0ddb7e2f86371 (diff) |
test: Make sure no more than 64 clashing elements can be added to hash:net,iface sets
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hash:net,iface.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/hash:net,iface.t b/tests/hash:net,iface.t index e594cca..444f230 100644 --- a/tests/hash:net,iface.t +++ b/tests/hash:net,iface.t @@ -132,6 +132,10 @@ 0 (set -e; for x in `seq 0 63`; do ipset add test 10.0.0.0/16,eth$x; done) # Check listing 0 n=`ipset list test | grep -v Revision: | wc -l` && test $n -eq 71 +# Flush test set +0 ipset flush test +# Try to add more than 64 clashing entries +1 (set -e; for x in `seq 0 64`; do ipset add test 10.0.0.0/16,eth$x; done) # Delete test set 0 ipset destroy test # Check all possible CIDR values |