]> The Tcpdump Group git mirrors - tcpdump/commitdiff
BGP: Add a test capture file
authorFrancois-Xavier Le Bail <[email protected]>
Thu, 24 Oct 2019 12:26:30 +0000 (12:26 +0000)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 24 Oct 2019 12:40:04 +0000 (12:40 +0000)
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.

tests/TESTLIST
tests/bgp_mp_reach_nlri-oobr.out [new file with mode: 0644]
tests/bgp_mp_reach_nlri-oobr.pcap [new file with mode: 0644]

index edcd02f4add3f06a430d9b94f1dbd8591db3d80e..b1fd8a54233d86b88f495e9bbb39b9bc117f0620 100644 (file)
@@ -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 (file)
index 0000000..f54b06d
--- /dev/null
@@ -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 (file)
index 0000000..d43e226
Binary files /dev/null and b/tests/bgp_mp_reach_nlri-oobr.pcap differ