summaryrefslogtreecommitdiffstats
path: root/tests/resize.sh
blob: 19b93fb01876cc1d82299745fdda1b6bd0dcc649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

ipset=${IPSET_BIN:-../src/ipset}

$ipset x resize-test 2>/dev/null

set -e

$ipset n resize-test hash:ip hashsize 64
for x in `seq 1 32`; do
   for y in `seq 1 255`; do
      $ipset a resize-test 192.168.$x.$y
   done
done