From b3e8f7feacf438e601aa2c7e96de92f3ca061b34 Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Thu, 24 Nov 2011 16:49:54 +0100 Subject: Tests added to check ICMP/ICMPv6 type/code parsing --- tests/hash:net,port.t | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/hash:net,port.t') diff --git a/tests/hash:net,port.t b/tests/hash:net,port.t index b7bc8a3..993893d 100644 --- a/tests/hash:net,port.t +++ b/tests/hash:net,port.t @@ -34,6 +34,12 @@ 1 ipset test test 2.0.1.0,icmp:ping # Try to add IP address 0 ipset add test 2.0.0.1,icmp:ping timeout 3 +# Add ICMP by type/code +0 ipset add test 2.0.0.255,icmp:3/10 +# Test ICMP by type/code +0 ipset test test 2.0.0.255,icmp:3/10 +# Test ICMP by name +0 ipset test test 2.0.0.255,icmp:host-prohibited # List set 0 ipset list test | sed 's/timeout ./timeout x/' > .foo0 && ./sort.sh .foo0 # Check listing -- cgit v1.2.3