- c->myaddress = str2sockaddr(myaddress, myport);
-
- n->connection = c;
- sockaddr2str(&c->address, &hisaddress, &dummy);
- node = avl_unlink(node_udp_tree, n);
- n->address = str2sockaddr(hisaddress, hisport);
- avl_insert_node(node_udp_tree, node);
- if(n->hostname)
- free(n->hostname);
- n->hostname = sockaddr2hostname(&n->address);
- n->options = c->options;
- n->distance = 1;
- n->via = n->nexthop = n;
- n->prevhop = myself;
- n->status.reachable = 1;
- n->status.validkey = 0;
- n->status.waitingforkey = 0;