summaryrefslogtreecommitdiffstats
path: root/tests/resizet.sh
diff options
context:
space:
mode:
authorOliver Smith <oliver@8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa>2013-09-20 10:13:54 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2013-09-20 22:20:28 +0200
commitab7c172107690be48110c6176fa9000e4f4cf4d8 (patch)
tree1e600ff48412fef6590ceb40085860c3cecce9d4 /tests/resizet.sh
parent560c3b54e572d383f0931e4d82c5734725152030 (diff)
ipset: Add userspace code to support hash:net,net kernel module.
This adds the userspace library, tests to validate correct operation of the module and also provides appropriate usage information in the man page. The library version has been bumped accordingly. Signed-off-by: Oliver Smith <oliver@8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa> Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'tests/resizet.sh')
-rw-r--r--tests/resizet.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/resizet.sh b/tests/resizet.sh
index 74fb19e..ff98d58 100644
--- a/tests/resizet.sh
+++ b/tests/resizet.sh
@@ -61,6 +61,14 @@ case "$2" in
done
done
;;
+ netnet)
+ $ipset n test hash:net,net $1 hashsize 64 timeout 100
+ for x in `seq 0 16`; do
+ for y in `seq 0 255`; do
+ $ipset a test $ip$x$sep$y/$net,$ip$y$sep$x/$net
+ done
+ done
+ ;;
netport)
$ipset n test hash:net,port $1 hashsize 64 timeout 100
for x in `seq 0 16`; do