summaryrefslogtreecommitdiff
path: root/tests/hash:net6,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:net6,port.t
parent7ced13f1beeb9c115627347a1fd27746f14eb3d8 (diff)
downloadipset-b3e8f7feacf438e601aa2c7e96de92f3ca061b34.tar.gz
Tests added to check ICMP/ICMPv6 type/code parsing
Diffstat (limited to 'tests/hash:net6,port.t')
-rw-r--r--tests/hash:net6,port.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/hash:net6,port.t b/tests/hash:net6,port.t
index 1638157..3b58523 100644
--- a/tests/hash:net6,port.t
+++ b/tests/hash:net6,port.t
@@ -34,6 +34,12 @@
1 ipset test test 3:0:0::1,tcp:8
# Try to add IP address
0 ipset add test 3:0:0::1,tcp:8
+# Add ICMPv6 by type/code
+0 ipset add test 192:168:68::95,icmpv6:1/4
+# Test ICMPv6 by type/code
+0 ipset test test 192:168:68::95,icmpv6:1/4
+# Test ICMPv6 by name
+0 ipset test test 192:168:68::95,icmpv6:port-unreachable
# List set
0 ipset list test | sed 's/timeout ./timeout x/' > .foo0 && ./sort.sh .foo0
# Save set