summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_route.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-11 13:47:46 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-15 15:43:21 +0100
commitbaaea325e6a425321296cff40cc7a3b47b53efb3 (patch)
tree0431d956e172b0008fec32b596b15c5fcafbb8ee /ospf6d/ospf6_route.c
parentlib: Refactor if_get_by_name_len to be VRF aware (diff)
downloadfrr-baaea325e6a425321296cff40cc7a3b47b53efb3.tar.xz
frr-baaea325e6a425321296cff40cc7a3b47b53efb3.zip
*: Refactor ifindex2ifname to be VRF aware
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospf6d/ospf6_route.c')
-rw-r--r--ospf6d/ospf6_route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c
index 29956c61a..b8e5ca619 100644
--- a/ospf6d/ospf6_route.c
+++ b/ospf6d/ospf6_route.c
@@ -349,7 +349,7 @@ ospf6_route_zebra_copy_nexthops (struct ospf6_route *route,
{
const char *ifname;
inet_ntop (AF_INET6, &nh->address, buf, sizeof (buf));
- ifname = ifindex2ifname (nh->ifindex);
+ ifname = ifindex2ifname (nh->ifindex, VRF_DEFAULT);
zlog_debug (" nexthop: %s%%%.*s(%d)", buf, IFNAMSIZ, ifname,
nh->ifindex);
}
@@ -1040,7 +1040,7 @@ ospf6_route_show (struct vty *vty, struct ospf6_route *route)
/* nexthop */
inet_ntop (AF_INET6, &nh->address, nexthop,
sizeof (nexthop));
- ifname = ifindex2ifname (nh->ifindex);
+ ifname = ifindex2ifname (nh->ifindex, VRF_DEFAULT);
if (!i)
{
@@ -1146,7 +1146,7 @@ ospf6_route_show_detail (struct vty *vty, struct ospf6_route *route)
{
/* nexthop */
inet_ntop (AF_INET6, &nh->address, nexthop, sizeof (nexthop));
- ifname = ifindex2ifname (nh->ifindex);
+ ifname = ifindex2ifname (nh->ifindex, VRF_DEFAULT);
vty_out (vty, " %s %.*s%s", nexthop, IFNAMSIZ, ifname, VNL);
}
vty_out (vty, "%s", VNL);