]> git.proxmox.com 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)
committerTrey Aspelund <taspelund@cumulusnetworks.com>
Fri, 25 Sep 2020 13:46:54 +0000 (09:46 -0400)
commit7aa4fd5ba79d9ba77e993da209089ef013883bc8
tree271385ff1242891324f814186a1cd528f1bd50ef
parent46dd92c5224269a3df3cfa21de2701ec0bee0c85
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