summaryrefslogtreecommitdiffstats
path: root/tests/check_cidrs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check_cidrs.sh')
-rwxr-xr-xtests/check_cidrs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check_cidrs.sh b/tests/check_cidrs.sh
index 38f735f..2206b18 100755
--- a/tests/check_cidrs.sh
+++ b/tests/check_cidrs.sh
@@ -10,14 +10,14 @@ $ipset n test hash:net
for x in `seq 1 32`; do
$ipset a test 10.0.0.0/$x
n=`$ipset l test | wc -l`
- n=$((n - 7))
+ n=$((n - 8))
test $n -eq $x || exit 1
done
for x in `seq 32 -1 1`; do
$ipset d test 10.0.0.0/$x
n=`$ipset l test | wc -l`
# We deleted one element
- n=$((n - 7 + 1))
+ n=$((n - 8 + 1))
test $n -eq $x || exit 1
done
$ipset x test