diff options
author | Oliver Smith <oliver@8.c.9.b.0.7.4.0.1.0.0.2.ip6.arpa> | 2013-09-20 10:13:54 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2013-09-20 22:20:28 +0200 |
commit | ab7c172107690be48110c6176fa9000e4f4cf4d8 (patch) | |
tree | 1e600ff48412fef6590ceb40085860c3cecce9d4 /tests/resizen.sh | |
parent | 560c3b54e572d383f0931e4d82c5734725152030 (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/resizen.sh')
-rw-r--r-- | tests/resizen.sh | 14 |
1 files changed, 14 insertions, 0 deletions
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 |