]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: The last_reset_cause in the peer structure is too large
authorDonald Sharp <sharpd@nvidia.com>
Mon, 24 Jul 2023 00:30:47 +0000 (20:30 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 25 Jul 2023 02:41:14 +0000 (22:41 -0400)
commit73b66bed83a38eea37371c6bbb0655c72c903293
tree18823835fc2da77caf323dd4482c9015599647be
parent9e32b73634a8bbe893f2425ee89ee27651d93408
bgpd: The last_reset_cause in the peer structure is too large

The last_reset_cause is a plain old BGP_MAX_PACKET_SIZE buffer
that is really enlarging the peer data structure.  Let's just
copy the stream that failed and only allocate how ever much
the packet size actually was.  While it's likely that we have
a reset reason, the packet typically is not going to be 65k
in size.  Let's save space.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
bgpd/bgp_packet.c
bgpd/bgp_vty.c
bgpd/bgpd.c
bgpd/bgpd.h