From: jeclarke Date: Thu, 30 Mar 2023 13:23:48 +0000 (+0100) Subject: bgpd: increase buffer size used for dumping BGP to MRT files X-Git-Tag: docker/8.5.1~25^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8607277de86987722caa0c3594ff0ce3190aa96e;p=matthieu%2Ffrr.git bgpd: increase buffer size used for dumping BGP to MRT files Signed-off-by: James Clarke (jamclar2) (cherry picked from commit 461b6cd4d7f27624569f7a557f9abf91a85ab3cc) --- diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c index 98a2f95ead..9edddc51ed 100644 --- a/bgpd/bgp_dump.c +++ b/bgpd/bgp_dump.c @@ -860,8 +860,7 @@ void bgp_dump_init(void) memset(&bgp_dump_routes, 0, sizeof(bgp_dump_routes)); bgp_dump_obuf = - stream_new((BGP_STANDARD_MESSAGE_MAX_PACKET_SIZE * 2) - + BGP_DUMP_MSG_HEADER + BGP_DUMP_HEADER_SIZE); + stream_new(BGP_MAX_PACKET_SIZE + BGP_MAX_PACKET_SIZE_OVERFLOW); install_node(&bgp_dump_node);