From c11c24887a6bf35efa64dd48140d8e9b523d0790 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 21 Nov 2022 13:20:05 +0100 Subject: [PATCH] test: Make sure no more than 64 clashing elements can be added to hash:net,iface sets --- tests/hash:net,iface.t | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.47.2