From 7f9adafc109d576d5249c25ef284606dbac4adfa Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 28 Jan 2020 18:07:25 +0100 Subject: [PATCH] BFD: Option to specify which class of BFD sessions are accepted Allows to configure IPv4/IPv6-only or direct/multihop-only BFD protocol instances. --- doc/bird.sgml | 9 +++++++++ proto/bfd/bfd.c | 34 +++++++++++++++++++++++++++++----- proto/bfd/bfd.h | 4 ++++ proto/bfd/config.Y | 20 +++++++++++++++++++- 4 files changed, 61 insertions(+), 6 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index 8548c9c6..b965da87 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -1955,6 +1955,7 @@ milliseconds. protocol bfd [<name>] { + accept [ipv4|ipv6] [direct|multihop]; interface <interface pattern> { interval <time>; min rx interval <time>; @@ -1989,6 +1990,14 @@ protocol bfd [<name>] { + + A BFD protocol instance accepts (by default) all BFD session requests + (with regard to VRF restrictions, see above). This option controls + whether IPv4 / IPv6 and direct / multihop session requests are accepted + (and which listening sockets are opened). It can be used, for example, + to configure separate BFD protocol instances for IPv4 and for IPv6 + sessions. +