summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2009-12-07 19:19:13 +0300
committerDenis Ovsienko <infrastation@yandex.ru>2009-12-07 19:19:13 +0300
commit0d6388abc7a5da2a20a4854c400c8e176127e480 (patch)
treeeffe14c7fc1e958b6082685026a1c3ad92b2451a
parent78e6cd98dd88393d0863388caf37dae45435db7a (diff)
lib: remove unused function: route_dump_node()
-rw-r--r--lib/table.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/table.c b/lib/table.c
index 2ade71b8..70fc0b24 100644
--- a/lib/table.c
+++ b/lib/table.c
@@ -219,23 +219,6 @@ route_unlock_node (struct route_node *node)
route_node_delete (node);
}
-/* Dump routing table. */
-static void __attribute__ ((unused))
-route_dump_node (struct route_table *t)
-{
- struct route_node *node;
- char buf[46];
-
- for (node = route_top (t); node != NULL; node = route_next (node))
- {
- printf ("[%d] %p %s/%d\n",
- node->lock,
- node->info,
- inet_ntop (node->p.family, &node->p.u.prefix, buf, 46),
- node->p.prefixlen);
- }
-}
-
/* Find matched prefix. */
struct route_node *
route_node_match (struct route_table *table, struct prefix *p)