X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet_socket.c;h=8c8054900ba0fd718b6472e6d2d5e8c079e45a59;hp=5f6cd2a1a83791507c93606d52f5217aa0d0026d;hb=a227843b739d279b63adcf3736ebb03d856080c4;hpb=5dde6461a321ee47b06e33f8203f2acf00a31a51 diff --git a/src/net_socket.c b/src/net_socket.c index 5f6cd2a1..8c805490 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -175,8 +175,6 @@ int setup_listen_socket(const sockaddr_t *sa) { int option; char *iface; - cp(); - nfd = socket(sa->sa.sa_family, SOCK_STREAM, IPPROTO_TCP); if(nfd < 0) { @@ -237,8 +235,6 @@ int setup_vpn_in_socket(const sockaddr_t *sa) { char *addrstr; int option; - cp(); - nfd = socket(sa->sa.sa_family, SOCK_DGRAM, IPPROTO_UDP); if(nfd < 0) { @@ -311,8 +307,6 @@ int setup_vpn_in_socket(const sockaddr_t *sa) { void retry_outgoing(outgoing_t *outgoing) { event_t *event; - cp(); - outgoing->timeout += 5; if(outgoing->timeout > maxtimeout) @@ -330,8 +324,6 @@ void retry_outgoing(outgoing_t *outgoing) { } void finish_connecting(connection_t *c) { - cp(); - ifdebug(CONNECTIONS) logger(LOG_INFO, _("Connected to %s (%s)"), c->name, c->hostname); configure_tcp(c); @@ -345,8 +337,6 @@ void do_outgoing_connection(connection_t *c) { char *address, *port; int result; - cp(); - begin: if(!c->outgoing->ai) { if(!c->outgoing->cfg) { @@ -440,8 +430,6 @@ void setup_outgoing_connection(outgoing_t *outgoing) { connection_t *c; node_t *n; - cp(); - n = lookup_node(outgoing->name); if(n) @@ -488,8 +476,6 @@ bool handle_new_meta_connection(int sock) { int fd; socklen_t len = sizeof(sa); - cp(); - fd = accept(sock, &sa.sa, &len); if(fd < 0) { @@ -541,8 +527,6 @@ void try_outgoing_connections(void) { connection_t *c; avl_node_t *node; - cp(); - if(outgoing_list) { for(node = connection_tree->head; node; node = node->next) { c = node->data;