diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-07-18 02:04:42 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-07-18 02:04:42 +0200 |
commit | f9deedf1f045d1b64edaf2f27209e5227cce155a (patch) | |
tree | cd092a8b499d79be68ee22cb5981154811ed8021 /proto/rip | |
parent | 9ff6c8d83c7fee5f354d4d6ed4efc15bfc6bc7e1 (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.c | 3 |
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) |