summaryrefslogtreecommitdiff
path: root/lib/bfd.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-03-24 06:03:02 -0700
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-03-24 06:03:02 -0700
commit1e22a2af507e0a51236d250e57145659754f81bb (patch)
tree36ef56cfaa79f375a10a7db7cab83187c867559b /lib/bfd.c
parentf8962871283672835ee121737b67cb689fa3823b (diff)
bgpd, lib, ospfd, ospf6d: Fix bfd interface lookup
bfd was receiving a callback with an interface name string but was ignoring the passed in vrf to find the ifp pointer. This commit fixes that code path in bfd. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reviewed-by: Radhika Mahankali <radhika@cumulusnetworks.com>
Diffstat (limited to 'lib/bfd.c')
-rw-r--r--lib/bfd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bfd.c b/lib/bfd.c
index e057bb05bf..4a29b3267d 100644
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -253,7 +253,7 @@ bfd_get_command_dbg_str(int command)
*/
struct interface *
bfd_get_peer_info (struct stream *s, struct prefix *dp, struct prefix *sp,
- int *status)
+ int *status, vrf_id_t vrf_id)
{
unsigned int ifindex;
struct interface *ifp = NULL;
@@ -265,7 +265,7 @@ bfd_get_peer_info (struct stream *s, struct prefix *dp, struct prefix *sp,
/* Lookup index. */
if (ifindex != 0)
{
- ifp = if_lookup_by_index (ifindex);
+ ifp = if_lookup_by_index_vrf (ifindex, vrf_id);
if (ifp == NULL)
{
zlog_warn ("zebra_interface_bfd_read: "