]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: increase buffer size used for dumping BGP to MRT files 13167/head
authorjeclarke <jamclar2@cisco.com>
Thu, 30 Mar 2023 13:23:48 +0000 (14:23 +0100)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 31 Mar 2023 06:25:13 +0000 (06:25 +0000)
Signed-off-by: James Clarke (jamclar2) <jamclar2@cisco.com>
(cherry picked from commit 461b6cd4d7f27624569f7a557f9abf91a85ab3cc)

bgpd/bgp_dump.c

index 11e84f00b4d04c36954f6f52594d5618d90b97fd..68499e3bbdd66b74a8e9ebbaf51b26e158fa5d96 100644 (file)
@@ -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);