]> granicus.if.org Git - ipset/commitdiff
Test to check the fix to add an IPv4 range containing more than 2^31 addresses
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 18 Sep 2017 19:46:42 +0000 (21:46 +0200)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 18 Sep 2017 19:46:42 +0000 (21:46 +0200)
tests/hash:net.t

index e73f29c735ac4e3f715ff5131c0d9184d5c46583..4db9e9a54f0504ee73a9df8470497fba90b58ca5 100644 (file)
 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