]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: increase buffer size used for dumping BGP to MRT files
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 98a2f95eadcaf638e8d3a851d696ca006b521c09..9edddc51edc9ef78fefbd5c10113efdd234f738c 100644 (file)
@@ -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);