Remove checkpoint tracing.
[tinc] / src / net_socket.c
index 5f6cd2a..8c80549 100644 (file)
@@ -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;