-void dump_nodes(void)
-{
- avl_node_t *node;
- node_t *n;
-cp
- syslog(LOG_DEBUG, _("Nodes:"));
-
- for(node = node_tree->head; node; node = node->next)
- {
- n = (node_t *)node->data;
- syslog(LOG_DEBUG, _(" %s at %s port %hd options %ld status %04x"),
- n->name, n->hostname, n->port, n->options,
- n->status);
- }
-
- syslog(LOG_DEBUG, _("End of nodes."));
-cp
+void dump_nodes(void) {
+ avl_node_t *node;
+ node_t *n;
+
+ logger(LOG_DEBUG, "Nodes:");
+
+ for(node = node_tree->head; node; node = node->next) {
+ n = node->data;
+ logger(LOG_DEBUG, " %s at %s cipher %d digest %d maclength %d compression %d options %x status %04x nexthop %s via %s pmtu %d (min %d max %d)",
+ n->name, n->hostname, n->outcipher ? EVP_CIPHER_nid(n->outcipher) : 0,
+ n->outdigest ? EVP_MD_type(n->outdigest) : 0, n->outmaclength, n->outcompression,
+ n->options, bitfield_to_int(&n->status, sizeof n->status), n->nexthop ? n->nexthop->name : "-",
+ n->via ? n->via->name : "-", n->mtu, n->minmtu, n->maxmtu);
+ }
+
+ logger(LOG_DEBUG, "End of nodes.");