diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-01-28 13:21:12 -0500 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-01-28 13:21:12 -0500 | 
| commit | 59293b8e70a7983d8f022f9c8b79c20619659bc2 (patch) | |
| tree | a909669cefcf02d844e33311d5df0e2cc4c6122f /ospfd/ospf_spf.c | |
| parent | e6d17d2fa9fa4ab253194e08d124dd028df24eb9 (diff) | |
ospfd: Remove #if 0 code
The #if 0 code in ospfd, has not been compiled since at least
2012.  If we are at least 9 years old at this point with no effort
to use or save, we should just get rid of it.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospfd/ospf_spf.c')
| -rw-r--r-- | ospfd/ospf_spf.c | 62 | 
1 files changed, 0 insertions, 62 deletions
diff --git a/ospfd/ospf_spf.c b/ospfd/ospf_spf.c index fae4f1e10c..82acd0829c 100644 --- a/ospfd/ospf_spf.c +++ b/ospfd/ospf_spf.c @@ -1683,68 +1683,6 @@ void ospf_spf_cleanup(struct vertex *spf, struct list *vertex_list)  		list_delete(&vertex_list);  } -#if 0 -static void -ospf_rtrs_print (struct route_table *rtrs) -{ -  struct route_node *rn; -  struct list *or_list; -  struct listnode *ln; -  struct listnode *pnode; -  struct ospf_route *or; -  struct ospf_path *path; -  char buf1[BUFSIZ]; -  char buf2[BUFSIZ]; - -  if (IS_DEBUG_OSPF_EVENT) -    zlog_debug ("ospf_rtrs_print() start"); - -  for (rn = route_top (rtrs); rn; rn = route_next (rn)) -    if ((or_list = rn->info) != NULL) -      for (ALL_LIST_ELEMENTS_RO (or_list, ln, or)) -        { -          switch (or->path_type) -            { -            case OSPF_PATH_INTRA_AREA: -              if (IS_DEBUG_OSPF_EVENT) -                zlog_debug ("%s   [%d] area: %s", -                           inet_ntop (AF_INET, &or->id, buf1, BUFSIZ), -                           or->cost, inet_ntop (AF_INET, &or->u.std.area_id, -                                                buf2, BUFSIZ)); -              break; -            case OSPF_PATH_INTER_AREA: -              if (IS_DEBUG_OSPF_EVENT) -                zlog_debug ("%s IA [%d] area: %s", -                           inet_ntop (AF_INET, &or->id, buf1, BUFSIZ), -                           or->cost, inet_ntop (AF_INET, &or->u.std.area_id, -                                                buf2, BUFSIZ)); -              break; -            default: -              break; -            } - -          for (ALL_LIST_ELEMENTS_RO (or->paths, pnode, path)) -            { -              if (path->nexthop.s_addr == INADDR_ANY) -                { -                  if (IS_DEBUG_OSPF_EVENT) -                    zlog_debug ("   directly attached to %s\r", -				ifindex2ifname (path->ifindex), VRF_DEFAULT); -                } -              else -                { -                  if (IS_DEBUG_OSPF_EVENT) -                    zlog_debug ("   via %pI4, %s\r", -				&path->nexthop, -				ifindex2ifname (path->ifindex), VRF_DEFAULT); -                } -            } -        } - -  zlog_debug ("ospf_rtrs_print() end"); -} -#endif -  /* Calculating the shortest-path tree for an area, see RFC2328 16.1. */  void ospf_spf_calculate(struct ospf_area *area, struct ospf_lsa *root_lsa,  			struct route_table *new_table,  | 
