summaryrefslogtreecommitdiff
path: root/bgpd/bgp_dump.c
diff options
context:
space:
mode:
authorjeclarke <jamclar2@cisco.com>2023-03-30 14:23:48 +0100
committerjeclarke <jamclar2@cisco.com>2023-03-30 14:23:48 +0100
commit461b6cd4d7f27624569f7a557f9abf91a85ab3cc (patch)
treeedb59a3476fda3578c044811207a31f69a67e08d /bgpd/bgp_dump.c
parent6baf6b184c2cee822b1463708aac9d0886743003 (diff)
bgpd: increase buffer size used for dumping BGP to MRT files
Signed-off-by: James Clarke (jamclar2) <jamclar2@cisco.com>
Diffstat (limited to 'bgpd/bgp_dump.c')
-rw-r--r--bgpd/bgp_dump.c3
1 files changed, 1 insertions, 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);