Skip to content

Commit

Permalink
Merge pull request #3079 from opensourcerouting/large_as_path_5
Browse files Browse the repository at this point in the history
bgpd: Fix for large AS paths which are split into segments (5.0 branch)
  • Loading branch information
donaldsharp committed Sep 24, 2018
2 parents 5ed0cb8 + 5bbb36f commit 4e04591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bgpd/bgp_aspath.c
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,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,
Expand Down

0 comments on commit 4e04591

Please sign in to comment.