diff options
| author | Martin Winter <mwinter@opensourcerouting.org> | 2018-09-07 14:43:11 -0700 |
|---|---|---|
| committer | Martin Winter <mwinter@opensourcerouting.org> | 2018-09-24 06:45:37 -0700 |
| commit | 0de68c06c78e2329ba40689fd286a031af81f48f (patch) | |
| tree | 1e684310425fe85832f5eff7a0a02e53c7bb7eed | |
| parent | 0248216c0f090af8706883d64907b56940ac7dbe (diff) | |
bgpd: Fix for large AS paths which are split into segments
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
| -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 d6ad52b3a6..b532927e80 100644 --- a/bgpd/bgp_aspath.c +++ b/bgpd/bgp_aspath.c @@ -899,7 +899,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, |
