From 3859e4efc1597368df647323c5a3cc1771cb64ca Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 9 Dec 2022 05:51:30 +0100 Subject: [PATCH] BGP: Improve handling of hold and keepalive timers The effective keepalive time now scales relative to the negotiated hold time, to maintain proportion between the keepalive time and the hold time. This avoids issues when both keepalive and hold times were configured, the hold time was negotiated to a smaller value, but the keepalive time stayed the same. Add new options 'min hold time' and 'min keepalive time', which reject session attempts with too small hold time. Improve validation of config options an their documentation. Thanks to Alexander Zubkov and Sergei Goriunov for suggestions. --- doc/bird.sgml | 20 +++++++++++++++++--- proto/bgp/bgp.c | 15 +++++++++++++++ proto/bgp/bgp.h | 5 ++++- proto/bgp/config.Y | 6 ++++-- proto/bgp/packets.c | 20 ++++++++++++++++++-- 5 files changed, 58 insertions(+), 8 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index 47848f82..8925c2cc 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -2750,9 +2750,16 @@ using the following configuration parameters: