From: Francois-Xavier Le Bail Date: Thu, 24 Oct 2019 12:26:30 +0000 (+0000) Subject: BGP: Add a test capture file X-Git-Tag: tcpdump-4.99-bp~633 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/1356e69f02c0b1ca8146607eb64cccd893b20330 BGP: Add a test capture file This capture file triggered a buffer over-read with the 4.9.2 release fixed in the 4.9.3 release. With some previous updates, the problem no longer exists. Thus no fix needed. The pcap file was updated to pass the sanity checks and to avoid pcap_loop() error messages. Update the output of the test accordingly. Partial update from 13d52e9c0e7caf7e6325b0051bc90a49968be67f in 4.9 branch. --- diff --git a/tests/TESTLIST b/tests/TESTLIST index edcd02f4..b1fd8a54 100644 --- a/tests/TESTLIST +++ b/tests/TESTLIST @@ -637,6 +637,7 @@ isakmp-various-oobr isakmp-various-oobr.pcap isakmp-various-oobr.out -v aoe-oobr-1 aoe-oobr-1.pcap aoe-oobr-1.out -v -c1 frf16_magic_ie-oobr frf16_magic_ie-oobr.pcap frf16_magic_ie-oobr.out -v -c1 rx_serviceid_oobr rx_serviceid_oobr.pcap rx_serviceid_oobr.out +bgp_mp_reach_nlri-oobr bgp_mp_reach_nlri-oobr.pcap bgp_mp_reach_nlri-oobr.out -v # bad packets from Katie Holly mlppp-oobr mlppp-oobr.pcap mlppp-oobr.out diff --git a/tests/bgp_mp_reach_nlri-oobr.out b/tests/bgp_mp_reach_nlri-oobr.out new file mode 100644 index 00000000..f54b06d4 --- /dev/null +++ b/tests/bgp_mp_reach_nlri-oobr.out @@ -0,0 +1,26 @@ + 1 04:29:01.371655446 IP (tos 0xff,CE, ttl 254, id 32783, offset 0, flags [rsvd], proto TCP (6), length 65535, bad cksum 8e15 (->5bbf)!) + 241.0.128.39.179 > 239.0.0.1.0: Flags [none], seq 4144029695:4144095150, win 65535, options [eol], length 65455: BGP [|bgp] + Update Message (2), length: 45 + Withdrawn routes: + (illegal prefix length) + Unknown Attribute (195), length: 45823, Flags [TPE+b]: [|bgp] [|bgp] + Update Message (2), length: 45 + Withdrawn routes: + (illegal prefix length) + Unknown Attribute (195), length: 45823, Flags [TPE+b]: [|bgp] [|bgp] + Update Message (2), length: 45 + Withdrawn routes: + (illegal prefix length) + Unknown Attribute (195), length: 45823, Flags [TPE+b]: [|bgp] [|bgp] + Update Message (2), length: 45 + Withdrawn routes: + (illegal prefix length) + Unknown Attribute (195), length: 45823, Flags [TPE+b]: [|bgp] [|bgp] + Update Message (2), length: 45 + Withdrawn routes: + (illegal prefix length) + Unknown Attribute (195), length: 45571, Flags [TPE+b]: [|bgp] [|bgp] + Update Message (2), length: 45 + Withdrawn routes: + (illegal prefix length) + Unknown Attribute (195), length: 45823, Flags [TPE+b]: [|bgp] diff --git a/tests/bgp_mp_reach_nlri-oobr.pcap b/tests/bgp_mp_reach_nlri-oobr.pcap new file mode 100644 index 00000000..d43e2267 Binary files /dev/null and b/tests/bgp_mp_reach_nlri-oobr.pcap differ