From a04f44cd90fa0571963bca5330c5438c0b069b05 Mon Sep 17 00:00:00 2001 From: jeclarke Date: Thu, 30 Mar 2023 14:23:48 +0100 Subject: [PATCH] bgpd: increase buffer size used for dumping BGP to MRT files Signed-off-by: James Clarke (jamclar2) (cherry picked from commit 461b6cd4d7f27624569f7a557f9abf91a85ab3cc) --- bgpd/bgp_dump.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bgpd/bgp_dump.c b/bgpd/bgp_dump.c index 11e84f00b4..68499e3bbd 100644 --- a/bgpd/bgp_dump.c +++ b/bgpd/bgp_dump.c @@ -856,8 +856,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); -- 2.39.5