From: Jozsef Kadlecsik Date: Mon, 21 Nov 2022 12:20:05 +0000 (+0100) Subject: test: Make sure no more than 64 clashing elements can be added to hash:net,iface... X-Git-Tag: v7.16~2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=c11c24887a6bf35efa64dd48140d8e9b523d0790;p=thirdparty%2Fipset.git test: Make sure no more than 64 clashing elements can be added to hash:net,iface sets --- diff --git a/tests/hash:net,iface.t b/tests/hash:net,iface.t index e594ccaf..444f230a 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