X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=da5be4e60b824e141d492c4ea944223e863dbb6c;hp=0b617bd08ac3bffaf420c570eb56de7563607f26;hb=a227843b739d279b63adcf3736ebb03d856080c4;hpb=5dde6461a321ee47b06e33f8203f2acf00a31a51 diff --git a/src/net.c b/src/net.c index 0b617bd0..da5be4e6 100644 --- a/src/net.c +++ b/src/net.c @@ -52,8 +52,6 @@ static void purge(void) { edge_t *e; subnet_t *s; - cp(); - ifdebug(PROTOCOL) logger(LOG_DEBUG, _("Purging unreachable nodes")); /* Remove all edges and subnets owned by unreachable nodes. */ @@ -114,8 +112,6 @@ static int build_fdset(fd_set *readset, fd_set *writeset) { connection_t *c; int i, max = 0; - cp(); - FD_ZERO(readset); FD_ZERO(writeset); @@ -161,8 +157,6 @@ static int build_fdset(fd_set *readset, fd_set *writeset) { - Deactivate the host */ void terminate_connection(connection_t *c, bool report) { - cp(); - if(c->status.remove) return; @@ -227,8 +221,6 @@ static void check_dead_connections(void) { avl_node_t *node, *next; connection_t *c; - cp(); - for(node = connection_tree->head; node; node = next) { next = node->next; c = node->data; @@ -285,8 +277,6 @@ static void check_network_activity(fd_set * readset, fd_set * writeset) { socklen_t len = sizeof(result); vpn_packet_t packet; - cp(); - /* check input from kernel */ if(device_fd >= 0 && FD_ISSET(device_fd, readset)) { if(read_packet(&packet)) { @@ -352,8 +342,6 @@ int main_loop(void) { time_t last_ping_check, last_config_check, last_graph_dump; event_t *event; - cp(); - last_ping_check = now; last_config_check = now; last_graph_dump = now; @@ -383,7 +371,6 @@ int main_loop(void) { if(errno != EINTR && errno != EAGAIN) { logger(LOG_ERR, _("Error while waiting for input: %s"), strerror(errno)); - cp_trace(); dump_connections(); return 1; }