1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

BFD: Allow per-request session options

BFD session options are configured per interface in BFD protocol. This
patch allows to specify them also per-request in protocols requesting
sessions (currently limited to BGP).
This commit is contained in:
Ondrej Zajicek (work)
2020-11-08 15:33:22 +01:00
parent fc1e3211b1
commit 9d3fc3062b
11 changed files with 137 additions and 32 deletions

View File

@@ -777,7 +777,7 @@ ospf_neigh_update_bfd(struct ospf_neighbor *n, int use_bfd)
if (use_bfd && !n->bfd_req)
n->bfd_req = bfd_request_session(n->pool, n->ip, n->ifa->addr->ip,
n->ifa->iface, p->p.vrf,
ospf_neigh_bfd_hook, n);
ospf_neigh_bfd_hook, n, NULL);
if (!use_bfd && n->bfd_req)
{