]> git.puffer.fish Git - mirror/frr.git/commit
lib, zebra: Ensure route encoding has enough space 4435/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 31 May 2019 12:51:07 +0000 (08:51 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 31 May 2019 14:25:18 +0000 (10:25 -0400)
commitf3f45626125b117b4dc25498fced056da41bb493
tree49a0e6bab686259f8af4682c952e9bc596b6d8ea
parent9c61cec7e3847a4b9841c7914d57c93e3387929a
lib, zebra: Ensure route encoding has enough space

When you have compiled FRR with a large multipath number
then encoding large ecmp routes between zebra and the
routing daemons.  There exists a theoritical size
of multipath that will cause the encoding to be larger
than the ZEBRA_MAX_PACKET_SIZ.  In the cases where
we have allocated streams that will encode routes
then let's ensure that whatever size we have will
auto-fit what we say we can send.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/zclient.c
lib/zclient.h
zebra/zapi_msg.c
zebra/zserv.c