diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-09-24 15:37:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-24 15:37:47 +0200 |
commit | 92fe74de22b63741386d40b84dd7b6a9ac4ad2c3 (patch) | |
tree | fa5ec5130c48d9f2b91d0791980d03082cc26f3f /bgpd/bgp_aspath.c | |
parent | Merge pull request #3071 from donaldsharp/fix_vrf_name (diff) | |
parent | bgpd: Fix for large AS paths which are split into segments (diff) | |
download | frr-92fe74de22b63741386d40b84dd7b6a9ac4ad2c3.tar.xz frr-92fe74de22b63741386d40b84dd7b6a9ac4ad2c3.zip |
Merge pull request #2992 from opensourcerouting/large_as_path_fix
bgpd: Fix for large AS paths which are split into segments
Diffstat (limited to 'bgpd/bgp_aspath.c')
-rw-r--r-- | bgpd/bgp_aspath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_aspath.c b/bgpd/bgp_aspath.c index 1f8a910f2..0924223dd 100644 --- a/bgpd/bgp_aspath.c +++ b/bgpd/bgp_aspath.c @@ -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, |