struct prefix sp;
int status;
- ifp = bfd_get_peer_info (zclient->ibuf, &dp, &sp, &status);
+ ifp = bfd_get_peer_info (zclient->ibuf, &dp, &sp, &status, vrf_id);
if (BGP_DEBUG (zebra, ZEBRA))
{
*/
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;
/* 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: "
extern struct interface *
bfd_get_peer_info (struct stream *s, struct prefix *dp, struct prefix *sp,
- int *status);
+ int *status, vrf_id_t vrf_id);
const char *
bfd_get_status_str(int status);
struct bfd_info *bfd_info;
struct timeval tv;
- ifp = bfd_get_peer_info(zclient->ibuf, &dp, &sp, &status);
+ ifp = bfd_get_peer_info(zclient->ibuf, &dp, &sp, &status, vrf_id);
if ((ifp == NULL) || (dp.family != AF_INET6))
return 0;
struct bfd_info *bfd_info;
struct timeval tv;
- ifp = bfd_get_peer_info (zclient->ibuf, &p, NULL, &status);
+ ifp = bfd_get_peer_info (zclient->ibuf, &p, NULL, &status, vrf_id);
if ((ifp == NULL) || (p.family != AF_INET))
return 0;