From ab7c172107690be48110c6176fa9000e4f4cf4d8 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 20 Sep 2013 10:13:54 +0200 Subject: 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 Signed-off-by: Jozsef Kadlecsik --- tests/resizen.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tests/resizen.sh') diff --git a/tests/resizen.sh b/tests/resizen.sh index 1294efc..f473b0b 100644 --- a/tests/resizen.sh +++ b/tests/resizen.sh @@ -47,6 +47,20 @@ case "$2" in done done ;; + netnet) + $ipset n test hash:net,net $1 hashsize 64 + 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 nomatch + done + done + for x in `seq 0 16`; do + for y in `seq 0 255`; do + $ipset t test $ip$x$sep$y/$net,$ip$y$sep$x/$net nomatch \ + 2>/dev/null + done + done + ;; netport) $ipset n test hash:net,port $1 hashsize 64 for x in `seq 0 16`; do -- cgit v1.2.3