From a3d5c9d34c3b6e23d37073fd3bec7cd84017d8ba Mon Sep 17 00:00:00 2001 From: Esben Norby Date: Mon, 23 May 2005 22:26:46 +0000 Subject: Kill rt_dump_debug stuff as "ospfctl show rib [detail]" provides the same information. ok claudio@ --- usr.sbin/ospfd/rde_spf.c | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/ospfd/rde_spf.c b/usr.sbin/ospfd/rde_spf.c index b62592d6170..c6d20705104 100644 --- a/usr.sbin/ospfd/rde_spf.c +++ b/usr.sbin/ospfd/rde_spf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_spf.c,v 1.14 2005/05/22 18:05:42 norby Exp $ */ +/* $OpenBSD: rde_spf.c,v 1.15 2005/05/23 22:26:45 norby Exp $ */ /* * Copyright (c) 2005 Esben Norby @@ -36,7 +36,6 @@ RB_GENERATE(rt_tree, rt_node, entry, rt_compare) struct vertex *spf_root = NULL; void spf_dump(struct area *); /* XXX */ -void rt_dump_debug(void); /* XXX */ void cand_list_dump(void); /* XXX */ void calc_next_hop(struct vertex *, struct vertex *); void rt_update(struct in_addr, u_int8_t, struct in_addr, u_int32_t, @@ -77,26 +76,6 @@ spf_dump(struct area *area) return; } -void -rt_dump_debug(void) -{ - struct rt_node *r; - int i = 0; - - log_debug("rt_dump_debug:"); - - RB_FOREACH(r, rt_tree, &rt) { - log_debug("net: %s/%d", inet_ntoa(r->prefix), r->prefixlen); - log_debug(" nexthop: %s cost: %d ptype: %s dtype: %s", - inet_ntoa(r->nexthop), r->cost, path_type_names[r->p_type], - dst_type_names[r->d_type]); - log_debug(" area: %s", inet_ntoa(r->area)); - i++; - } - - log_debug("count: %d", i); -} - void spf_calc(struct area *area) { @@ -364,7 +343,6 @@ spf_calc(struct area *area) } spf_dump(area); - rt_dump_debug(); log_debug("spf_calc: calculation ended, area ID %s", inet_ntoa(area->id)); -- cgit v1.2.3