gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12677 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r12677 - gnunet/src/transport
Date: Thu, 19 Aug 2010 15:35:01 +0200

Author: nevans
Date: 2010-08-19 15:35:01 +0200 (Thu, 19 Aug 2010)
New Revision: 12677

Modified:
   gnunet/src/transport/plugin_transport_tcp.c
Log:
remove un-needed fake pong

Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2010-08-19 13:13:45 UTC (rev 
12676)
+++ gnunet/src/transport/plugin_transport_tcp.c 2010-08-19 13:35:01 UTC (rev 
12677)
@@ -1542,7 +1542,7 @@
   struct IPv6TcpAddress *t6;
   const struct sockaddr_in *s4;
   const struct sockaddr_in6 *s6;
-  static struct GNUNET_MessageHeader fake_pong;
+
 #if DEBUG_TCP_NAT
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "received tcp NAT probe\n");
 #endif
@@ -1577,8 +1577,8 @@
        * I think it should be outbound because we technically
        * initiated it... But something goes wrong somewhere. */
       /* session->inbound = GNUNET_YES; */
-      //session->inbound = GNUNET_YES;
-      //session->expecting_welcome = GNUNET_NO;
+      session->inbound = GNUNET_YES;
+
       if (GNUNET_OK ==
           GNUNET_SERVER_client_get_address (client, &vaddr, &alen))
         {
@@ -1617,12 +1617,7 @@
             }
           GNUNET_free (vaddr);
         }
-      fake_pong.size = sizeof(struct GNUNET_MessageHeader);
-      fake_pong.type = htons(GNUNET_MESSAGE_TYPE_TRANSPORT_PONG);
-      plugin->env->receive(session->plugin->env->cls, &session->target, 
&fake_pong, 1, session, session->connect_addr, session->connect_alen);
-#if DEBUG_TCP_NAT
-      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Giving fake pong to transport 
service so hopefully it will schedule validation of THIS address!\n");
-#endif
+
       session->next = plugin->sessions;
       plugin->sessions = session;
       GNUNET_STATISTICS_update (plugin->env->stats,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]