diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 86bded14bb..c12cf03cec 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -1414,7 +1414,7 @@ struct peer *peer_new(struct bgp *bgp) pthread_mutex_init(&peer->io_mtx, NULL); peer->ibuf_work = - ringbuf_new(BGP_MAX_PACKET_SIZE * BGP_READ_PACKET_MAX); + ringbuf_new(BGP_MAX_PACKET_SIZE + BGP_MAX_PACKET_SIZE/2); /* Get service port number. */ sp = getservbyname("bgp", "tcp");