summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-10-24 12:26:30 +0000
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-10-24 12:40:04 +0000
commit1356e69f02c0b1ca8146607eb64cccd893b20330 (patch)
tree9a170edbc58b7c4dbc28dc65dbb63bbc88975c82
parent84df2672056cb8b7eac2603fba13e6a5d0ce0d39 (diff)
downloadtcpdump-1356e69f02c0b1ca8146607eb64cccd893b20330.tar.gz
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.
-rw-r--r--tests/TESTLIST1
-rw-r--r--tests/bgp_mp_reach_nlri-oobr.out26
-rw-r--r--tests/bgp_mp_reach_nlri-oobr.pcapbin0 -> 2714 bytes
3 files changed, 27 insertions, 0 deletions
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
--- /dev/null
+++ b/tests/bgp_mp_reach_nlri-oobr.pcap
Binary files differ