- from_addrstr = address2str(e->from.address);
- to_addrstr = address2str(e->to.address);
- x = send_request(c, "%d %s %s %hd %s %s %hd %lx %d", ADD_EDGE,
- e->from.node->name, from_addrstr, e->from.port,
- e->to.node->name, to_addrstr, e->to.port,
+ sockaddr2str(&e->from.udpaddress, &from_udpaddress, &from_udpport);
+ sockaddr2str(&e->to.udpaddress, &to_udpaddress, &to_udpport);
+ x = send_request(c, "%d %lx %s %s %s %s %s %s %lx %d", ADD_EDGE, random(),
+ e->from.node->name, from_udpaddress, from_udpport,
+ e->to.node->name, to_udpaddress, to_udpport,