From 461b6cd4d7f27624569f7a557f9abf91a85ab3cc 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) --- 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 c78e740ec9..fe77e7e250 100644 --- a/bgpd/bgp_dump.c +++ b/bgpd/bgp_dump.c @@ -845,8 +845,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);