summaryrefslogtreecommitdiffstats
path: root/tests/hash:net,port.t
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-11-24 16:49:54 +0100
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-11-24 16:49:54 +0100
commitb3e8f7feacf438e601aa2c7e96de92f3ca061b34 (patch)
treef53fd45274a67ddaeca5f5b83907e657e0e04d62 /tests/hash:net,port.t
parent7ced13f1beeb9c115627347a1fd27746f14eb3d8 (diff)
Tests added to check ICMP/ICMPv6 type/code parsing
Diffstat (limited to 'tests/hash:net,port.t')
-rw-r--r--tests/hash:net,port.t6
1 files changed, 6 insertions, 0 deletions
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