From 020936c8c3375e1efe44a3087c891a4b2cbfe044 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Tue, 22 Jun 2010 10:49:41 +0200 Subject: ipset 5: last new feature added - the hash types can now store protocol together port, not only port - lots of fixes everywhere: parser, error reporting, manpage The last bits on the todo list before announcing ipset 5: - recheck all the error messages - add possibly more tests - polish manpage --- tests/ipportiphash.t | 80 ++++++++++++++++++++++++++-------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) (limited to 'tests/ipportiphash.t') diff --git a/tests/ipportiphash.t b/tests/ipportiphash.t index 3f61947..f6e79cc 100644 --- a/tests/ipportiphash.t +++ b/tests/ipportiphash.t @@ -1,81 +1,81 @@ -# Range: Create a set from a range (range ignored) +# Create a set from a range (range ignored) 0 ipset -N test ipportiphash --from 2.0.0.1 --to 2.1.0.0 -# Range: Destroy set +# Destroy set 0 ipset -X test -# Range: Create a set +# Create a set 0 ipset -N test ipportiphash -# Range: Add partly zero valued element +# Add partly zero valued element 0 ipset -A test 2.0.0.1,0,0.0.0.0 -# Range: Test partly zero valued element +# Test partly zero valued element 0 ipset -T test 2.0.0.1,0,0.0.0.0 -# Range: Delete party zero valued element +# Delete party zero valued element 0 ipset -D test 2.0.0.1,0,0.0.0.0 -# Range: Add almost zero valued element +# Add almost zero valued element 0 ipset -A test 2.0.0.1,0,0.0.0.1 -# Range: Test almost zero valued element +# Test almost zero valued element 0 ipset -T test 2.0.0.1,0,0.0.0.1 -# Range: Delete almost zero valued element +# Delete almost zero valued element 0 ipset -D test 2.0.0.1,0,0.0.0.1 -# Range: Add lower boundary +# Add lower boundary 0 ipset -A test 2.0.0.1,5,1.1.1.1 -# Range: Add upper boundary +# Add upper boundary 0 ipset -A test 2.1.0.0,128,2.2.2.2 -# Range: Test lower boundary +# Test lower boundary 0 ipset -T test 2.0.0.1,5,1.1.1.1 -# Range: Test upper boundary +# Test upper boundary 0 ipset -T test 2.1.0.0,128,2.2.2.2 -# Range: Test value not added to the set +# Test value not added to the set 1 ipset -T test 2.0.0.1,5,1.1.1.2 -# Range: Test value not added to the set +# Test value not added to the set 1 ipset -T test 2.0.0.1,6,1.1.1.1 -# Range: Test value not added to the set +# Test value not added to the set 1 ipset -T test 2.0.0.2,6,1.1.1.1 -# Range: Test value before lower boundary +# Test value before lower boundary 1 ipset -T test 2.0.0.0,5,1.1.1.1 -# Range: Test value after upper boundary +# Test value after upper boundary 1 ipset -T test 2.1.0.1,128,2.2.2.2 -# Range: Try to add value before lower boundary +# Try to add value before lower boundary 0 ipset -A test 2.0.0.0,5,1.1.1.1 -# Range: Try to add value after upper boundary +# Try to add value after upper boundary 0 ipset -A test 2.1.0.1,128,2.2.2.2 -# Range: List set +# List set 0 ipset -L test > .foo0 && ./sort.sh .foo0 -# Range: Check listing +# Check listing 0 diff -I 'Size in memory.*' .foo ipportiphash.t.list0 && rm .foo -# Range: Flush test set +# Flush test set 0 ipset -F test -# Range: Delete test set +# Delete test set 0 ipset -X test -# Network: Create a set from a valid network (network ignored) +# Create a set from a valid network (network ignored) 0 ipset -N test ipportiphash --network 2.0.0.0/16 -# Network: Add lower boundary +# Add lower boundary 0 ipset -A test 2.0.0.0,5,1.1.1.1 -# Network: Add upper boundary +# Add upper boundary 0 ipset -A test 2.0.255.255,128,2.2.2.2 -# Network: Test lower boundary +# Test lower boundary 0 ipset -T test 2.0.0.0,5,1.1.1.1 -# Network: Test upper boundary +# Test upper boundary 0 ipset -T test 2.0.255.255,128,2.2.2.2 -# Network: Test value not added to the set +# Test value not added to the set 1 ipset -T test 2.0.0.0,5,1.1.1.2 -# Network: Test value not added to the set +# Test value not added to the set 1 ipset -T test 2.0.0.0,6,1.1.1.1 -# Network: Test value before lower boundary +# Test value before lower boundary 1 ipset -T test 1.255.255.255,5,1.1.1.1 -# Network: Test value after upper boundary +# Test value after upper boundary 1 ipset -T test 2.1.0.0,128,2.2.2.2 -# Network: Try to add value before lower boundary +# Try to add value before lower boundary 0 ipset -A test 1.255.255.255,5,1.1.1.1 -# Network: Try to test value before lower boundary +# Try to test value before lower boundary 0 ipset -T test 1.255.255.255,5,1.1.1.1 -# Network: Try to del value before lower boundary +# Try to del value before lower boundary 0 ipset -D test 1.255.255.255,5,1.1.1.1 -# Network: List set +# List set 0 ipset -L test > .foo0 && ./sort.sh .foo0 -# Network: Check listing +# Check listing 0 diff -I 'Size in memory.*' .foo ipportiphash.t.list1 && rm .foo -# Network: Flush test set +# Flush test set 0 ipset -F test -# Network: Delete test set +# Delete test set 0 ipset -X test # eof -- cgit v1.2.3