- e = (edge_t *)node->data;
- from_tcp = sockaddr2hostname(&e->from.tcpaddress);
- from_udp = sockaddr2hostname(&e->from.udpaddress);
- to_tcp = sockaddr2hostname(&e->to.tcpaddress);
- to_udp = sockaddr2hostname(&e->to.udpaddress);
- syslog(LOG_DEBUG, _(" %s tcp at %s udp at %s - %s tcp at %s udp at %s options %ld weight %d"),
- e->from.node->name, from_tcp, from_udp,
- e->to.node->name, to_tcp, to_udp,
- e->options, e->weight);
- free(from_tcp);
- free(from_udp);
- free(to_tcp);
- free(to_udp);
+ n = (node_t *)node->data;
+ for(node2 = n->edge_tree->head; node2; node2 = node2->next)
+ {
+ e = (edge_t *)node2->data;
+ address = sockaddr2hostname(&e->address);
+ syslog(LOG_DEBUG, _(" %s to %s at %s options %lx weight %d"),
+ e->from->name, e->to->name, address,
+ e->options, e->weight);
+ free(address);
+ }