]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Use bgp instance's default keepalive interval if < (holdtime/3)
authorTrey Aspelund <taspelund@cumulusnetworks.com>
Wed, 23 Sep 2020 18:16:50 +0000 (14:16 -0400)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Mon, 28 Sep 2020 08:20:23 +0000 (11:20 +0300)
commit9989855ff662e133abbcc383fd035a5585c3c2e4
tree33a7a80a794347262fd4bbbe59226ac10e11dbe0
parent84d0f66ff712e301eaff8055fbde5d9fa1a493dd
bgpd: Use bgp instance's default keepalive interval if < (holdtime/3)

bgp->default_keepalive was not considered when setting
peer->v_keepalive, causing the effective keepalive interval to
always be (holdtime/3), even when default_keepalive < (holdtime/3).
This ensures that the default_keepalive is used when it's set and
is < (holdtime/3).

Signed-off-by: Trey Aspelund <taspelund@cumulusnetworks.com>
(cherry picked from commit d8bf8c6128f2e493d473148213bd663a500c7f73)
bgpd/bgp_packet.c