summaryrefslogtreecommitdiff
path: root/proto/rip
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2019-07-18 02:04:42 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2019-07-18 02:04:42 +0200
commitf9deedf1f045d1b64edaf2f27209e5227cce155a (patch)
treecd092a8b499d79be68ee22cb5981154811ed8021 /proto/rip
parent9ff6c8d83c7fee5f354d4d6ed4efc15bfc6bc7e1 (diff)
BFD: Support for VRFs
Allow multiple BFD instances in separate VRFs, dispatch BFD requests according to VRFs. Thanks to Alexander Zubkov for notice and patches.
Diffstat (limited to 'proto/rip')
-rw-r--r--proto/rip/rip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proto/rip/rip.c b/proto/rip/rip.c
index 88d7b7c8..6afdc084 100644
--- a/proto/rip/rip.c
+++ b/proto/rip/rip.c
@@ -504,7 +504,8 @@ rip_update_bfd(struct rip_proto *p, struct rip_neighbor *n)
*/
ip_addr saddr = rip_is_v2(p) ? n->ifa->sk->saddr : n->nbr->ifa->ip;
n->bfd_req = bfd_request_session(p->p.pool, n->nbr->addr, saddr,
- n->nbr->iface, rip_bfd_notify, n);
+ n->nbr->iface, p->p.vrf,
+ rip_bfd_notify, n);
}
if (!use_bfd && n->bfd_req)