Merge pull request #2992 from opensourcerouting/large_as_path_fix

bgpd: Fix for large AS paths which are split into segments
This commit is contained in:
Donald Sharp 2018-09-24 09:37:47 -04:00 committed by GitHub
commit 92fe74de22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -900,7 +900,7 @@ size_t aspath_put(struct stream *s, struct aspath *as, int use32bit)
while ((seg->length - written) > AS_SEGMENT_MAX) {
assegment_header_put(s, seg->type,
AS_SEGMENT_MAX);
assegment_data_put(s, seg->as, AS_SEGMENT_MAX,
assegment_data_put(s, (seg->as + written), AS_SEGMENT_MAX,
use32bit);
written += AS_SEGMENT_MAX;
bytes += ASSEGMENT_SIZE(AS_SEGMENT_MAX,