summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2017-09-18 21:46:42 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2017-09-18 21:46:42 +0200
commit7b500b2c4e0784f66b5ac69cf4bbb9bd9875444b (patch)
tree0bb51ea838b00f8a1443dc5adef1d6762463283f /tests
parentae810f58cbfd08a654877f7f78239526e1caf117 (diff)
Test to check the fix to add an IPv4 range containing more than 2^31 addresses
Diffstat (limited to 'tests')
-rw-r--r--tests/hash:net.t10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hash:net.t b/tests/hash:net.t
index e73f29c..4db9e9a 100644
--- a/tests/hash:net.t
+++ b/tests/hash:net.t
@@ -120,6 +120,16 @@
0 ./resizet.sh -4 net
# Nomatch: Check that resizing keeps the nomatch flag
0 ./resizen.sh -4 net
+# Create set without timeout support
+0 ipset n test hash:net
+# Add more than 2^31 elements in a range
+0 ipset a test 0.0.0.0-128.0.0.1
+# List set
+0 ipset -L test 2>/dev/null | grep -v Revision: > .foo0 && ./sort.sh .foo0
+# Check listing
+0 diff -u -I 'Size in memory.*' .foo hash:net.t.list3
+# Delete test set
+0 ipset destroy test
# Counters: create set
0 ipset n test hash:net counters
# Counters: add element with packet, byte counters