From: Francois-Xavier Le Bail Date: Thu, 24 Oct 2019 15:23:08 +0000 (+0000) Subject: DCCP: Add a test capture file X-Git-Tag: tcpdump-4.99-bp~630 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/4ad4b6ee7dd4c10110aa860748a3e6cb849d6f51 DCCP: Add a test capture file This capture file triggered a buffer over-read with the 4.9.2 release and was fixed in the 4.9.3 release. The problem was fixed in master branch by commit 6df4852ec38a5f7342f35e8d62918f33ace103f8. The pcap file was updated to avoid pcap_loop() error messages. Update the output of the test accordingly. Partial update from 211124b972e74f0da66bc8b16f181f78793e2f66 in 4.9 branch. --- diff --git a/tests/TESTLIST b/tests/TESTLIST index e08d31f0..8bf062cf 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -656,6 +656,7 @@ hncp_prefix-oobr hncp_prefix-oobr.pcap hncp_prefix-oobr.out -vvv # bad packets from Ryan Ackroyd ieee802.11_meshhdr-oobr ieee802.11_meshhdr-oobr.pcap ieee802.11_meshhdr-oobr.out -H +dccp_options-oobr dccp_options-oobr.pcap dccp_options-oobr.out -vv # RTP tests # fuzzed pcap diff --git a/tests/dccp_options-oobr.out b/tests/dccp_options-oobr.out new file mode 100644 index 00000000..63c61465 --- /dev/null +++ b/tests/dccp_options-oobr.out @@ -0,0 +1,19 @@ + 1 16:59:25.816632 IP (tos 0x0, ttl 64, id 65312, offset 0, flags [DF], proto DCCP (33), length 52) + 139.133.209.176.39420 > 139.133.209.65.5001: DCCP (CCVal 0, CsCov 0, cksum 0xaaf3 (incorrect -> 0x8bf3)) DCCP-Request (service=4105078398) seq 8 + 2 14:27:00.817006 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto DCCP (33), length 68) + 139.133.209.65.5001 > 139.133.209.176.39420: DCCP (CCVal 0, CsCov 0, ) DCCP-Response (service=0) (ack=38464816766) seq 1960341146 + 3 14:27:00.817125 IP (tos 0x0, ttl 64, id 65313, offset 0, flags [DF], proto DCCP (33), length 56) + 139.133.209.176.39420 > 139.133.209.65.5001: DCCP (CCVal 0, CsCov 0, cksum 0xf53a (incorrect -> 0xf551)) DCCP-Ack (ack=1960341146) seq 38464816767 + 4 14:27:00.829614 IP (tos 0x0, ttl 64, id 65314, offset 0, flags [DF], proto DCCP (33), length 152) + 139.133.209.176.46076 > 139.133.209.65.48009: DCCP (CCVal 0, CsCov 6, ) DCCP-DataAck (ack=1960341146) seq 38464816768 + 5 14:27:00.830145 IP (tos 0x0, ttl 64, id 3176, offset 0, flags [DF], proto DCCP (33), length 52) + 139.133.209.65.5001 > 139.133.209.176.39420: DCCP (CCVal 0, CsCov 0, cksum 0xfc63 (correct)) DCCP-Ack (ack=38464816768) seq 1960341147 + 6 14:27:00.831060 IP (tos 0x0, ttl 64, id 65315, offset 0, flags [DF], proto DCCP (33), length 148) + 139.133.209.176.39420 > 139.133.209.65.5001: DCCP (CCVal 0, CsCov 6, ) DCCP-DataAck (ack=1960341147) seq 38464816769 + 7 14:27:00.831421 IP (tos 0x0, ttl 64, id 3177, offset 0, flags [DF], proto DCCP (33), length 52) + 139.133.209.65.5001 > 139.133.209.176.39420: DCCP (CCVal 0, CsCov 0, cksum 0x0165 (correct)) DCCP-Ack (ack=38464816769) seq 1960341148 + 8 14:27:00.832055 00:07:00:42:00:00 > 00:14:22:59:55:51 Null Information, send seq 0, rcv seq 0, Flags [Command], length 66 + 0x0000: 0000 0000 1422 5955 5100 07e9 bd5d 1f08 ....."YUQ....].. + 0x0010: 0045 0000 34ff 2040 0040 2181 8b8b 85d1 .E..4..@.@!..... + 0x0020: b08b 85d1 4199 fc13 8908 00aa f320 0000 ....A........... + 0x0030: 08f4 ae86 7e00 0000 ....~... diff --git a/tests/dccp_options-oobr.pcap b/tests/dccp_options-oobr.pcap new file mode 100644 index 00000000..b4d50d87 Binary files /dev/null and b/tests/dccp_options-oobr.pcap differ