From 7b500b2c4e0784f66b5ac69cf4bbb9bd9875444b Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 18 Sep 2017 21:46:42 +0200 Subject: Test to check the fix to add an IPv4 range containing more than 2^31 addresses --- tests/hash:net.t | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests') 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 -- cgit v1.2.3