]> git.proxmox.com Git - mirror_frr.git/commit
bgpd: Fix AS_PATH size calculation for long paths
authorAndreas Jaggi <aj@open.ch>
Fri, 8 Sep 2017 11:46:20 +0000 (07:46 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 8 Sep 2017 11:54:03 +0000 (07:54 -0400)
commit084002351fbfd6b4e2d9c4c218288b2324ad81cd
tree0380ea7ef0615fe81cd8eb2ffbae7aef888ed9a3
parentb1eec2516a9b7cca8d85e35e58aad5f896be12eb
bgpd: Fix AS_PATH size calculation for long paths

If you have an AS_PATH with more entries than
what can be written into a single AS_SEGMENT_MAX
it needs to be broken up.  The code that noticed
that the AS_PATH needs to be broken up was not
correctly calculating the size of the resulting
message.  This patch addresses this issue.

This patch was built from an email that Andreas
sent to the dev alias for FRRouting.

Fixes: #1114
Signed-off-by: Andreas Jaggi <aj@open.ch>
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_aspath.c