From a8ba847ff96b41e06770d4987b15707890ed5807 Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Mon, 27 Jul 2009 12:42:34 +0200 Subject: ospfd: Change struct ospf_path *oi to ifindex. * global: In struct ospf_path, change struct ospf_interface *oi to int ifindex. It is unsafe to reference *oi as an ospf interface can be deleted under your feet. Use a weak reference instead. --- ospfd/ospf_spf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ospfd/ospf_spf.c') diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c index 12afe5d9..95668435 100644 --- a/ospfd/ospf_spf.c +++ b/ospfd/ospf_spf.c @@ -1077,13 +1077,14 @@ ospf_rtrs_print (struct route_table *rtrs) { if (IS_DEBUG_OSPF_EVENT) zlog_debug (" directly attached to %s\r\n", - IF_NAME (path->oi)); + ifindex2ifname (path->ifindex)); } else { if (IS_DEBUG_OSPF_EVENT) zlog_debug (" via %s, %s\r\n", - inet_ntoa (path->nexthop), IF_NAME (path->oi)); + inet_ntoa (path->nexthop), + ifindex2ifname (path->ifindex)); } } } -- cgit v1.2.3