diff options
| author | Martin Winter <mwinter@opensourcerouting.org> | 2018-09-07 14:43:11 -0700 |
|---|---|---|
| committer | Martin Winter <mwinter@opensourcerouting.org> | 2018-09-07 14:43:11 -0700 |
| commit | 248c86da11ff4cec249a36183eec67efe6797eb6 (patch) | |
| tree | ae9cc6571e7ec2ed5b25733a7b56f806d929ceb7 | |
| parent | cb50f399dbd7af2cf96db046c6b74dcf38a2c603 (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, |
