- 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"),
- cl->name, cl->hostname, cl->port, cl->options,
- cl->socket, cl->meta_socket, cl->status);
- }
-
- syslog(LOG_DEBUG, _("End of connection list."));
-cp
-}
+ for(node = connection_tree->head; node; node = node->next) {
+ c = node->data;
+ send_request(cdump, "%d %d %s at %s options %x socket %d status %04x",
+ CONTROL, REQ_DUMP_CONNECTIONS,
+ c->name, c->hostname, c->options, c->socket,
+ bitfield_to_int(&c->status, sizeof c->status));
+ }