-/* Debugging */
-
-void dump_connection_list(void)
-{
- avl_node_t *node;
- connection_t *cl;
-cp
- syslog(LOG_DEBUG, _("Connection list:"));
-
- for(node = connection_tree->head; node; node = node->next)
- {
- cl = (connection_t *)node->data;
- syslog(LOG_DEBUG, _(" %s at %s port %hd options %ld sockets %d, %d status %04x"),
- cl->name, cl->hostname, cl->port, cl->options,
- cl->socket, cl->meta_socket, cl->status);
- }
-
- syslog(LOG_DEBUG, _("Known hosts:"));
-
- for(node = id_tree->head; node; node = node->next)
- {
- cl = (connection_t *)node->data;
- syslog(LOG_DEBUG, _(" %s at %s port %hd options %ld sockets %d, %d status %04x nexthop %s prevhop %s via %s"),
- cl->name, cl->hostname, cl->port, cl->options,
- cl->socket, cl->meta_socket, cl->status, cl->nexthop->name, cl->prevhop->name, cl->via->name);
- }
-
- syslog(LOG_DEBUG, _("End of connection list."));
-cp