From 3fb06fea1d14ef147a567052391a5b359704e971 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 23 Nov 2023 20:54:22 +0100 Subject: BGP: Add options to require BGP capabilities Some BGP capabilities change the BGP behavior in a significant way, so if the configuration depends on it, it is better to not establish BGP session when the capability is not available. Add several BGP option to require individual BGP capabilities during session negotiation. --- doc/bird.sgml | 73 +++++++++++++++++++++++++++++++++++++++++++---------- proto/bgp/bgp.c | 49 ++++++++++++++++++++++++++++------- proto/bgp/bgp.h | 10 ++++++++ proto/bgp/config.Y | 9 +++++++ proto/bgp/packets.c | 38 ++++++++++++++++++++++++++-- 5 files changed, 155 insertions(+), 24 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index d2b6459b..10c6f121 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -2996,14 +2996,22 @@ using the following configuration parameters: refresh requests. Disabling Route Refresh also disables Enhanced Route Refresh. Default: on. +