summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorfxlb <fx.lebail@yahoo.com>2013-11-12 11:01:20 +0100
committerfxlb <fx.lebail@yahoo.com>2013-11-12 11:01:20 +0100
commit7be1e976c946be21b8ca3b5a77efa21c32f2516f (patch)
tree2f4c97f8e511934589687156adc8e683606819bf /tests
parent1dcb5526b1b9e69883a8f46e01c11f12b9fdee1f (diff)
downloadtcpdump-7be1e976c946be21b8ca3b5a77efa21c32f2516f.tar.gz
print-ip6: add a test on the header version value
Diffstat (limited to 'tests')
-rw-r--r--tests/TESTLIST3
-rw-r--r--tests/ipv6-bad-version.out4
-rw-r--r--tests/ipv6-bad-version.pcapbin0 -> 416 bytes
3 files changed, 7 insertions, 0 deletions
diff --git a/tests/TESTLIST b/tests/TESTLIST
index 8892b841..63eac93c 100644
--- a/tests/TESTLIST
+++ b/tests/TESTLIST
@@ -160,3 +160,6 @@ nflog-e nflog.pcap nflog-e.out -t -e
# syslog test case
syslog-v syslog_udp.pcap syslog-v.out -t -v
+
+#IPv6 tests
+ipv6-bad-version.pcap ipv6-bad-version.pcap ipv6-bad-version.out -t
diff --git a/tests/ipv6-bad-version.out b/tests/ipv6-bad-version.out
new file mode 100644
index 00000000..cd9150b1
--- /dev/null
+++ b/tests/ipv6-bad-version.out
@@ -0,0 +1,4 @@
+IP6 :: > ff02::1:ff76:6c14: ICMP6, neighbor solicitation, who has fe80::20c:29ff:fe76:6c14, length 24
+IP6 version error: 0 != 6
+IP6 :: > ff02::1:ff76:6c14: ICMP6, neighbor solicitation, who has 1111:2222:3333:4444:20c:29ff:fe76:6c14, length 24
+IP6 version error: 0 != 6
diff --git a/tests/ipv6-bad-version.pcap b/tests/ipv6-bad-version.pcap
new file mode 100644
index 00000000..357a6ee4
--- /dev/null
+++ b/tests/ipv6-bad-version.pcap
Binary files differ