From: Jozsef Kadlecsik Date: Mon, 18 Sep 2017 19:46:42 +0000 (+0200) Subject: Test to check the fix to add an IPv4 range containing more than 2^31 addresses X-Git-Tag: v6.34~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7b500b2c4e0784f66b5ac69cf4bbb9bd9875444b;p=ipset Test to check the fix to add an IPv4 range containing more than 2^31 addresses --- 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