bugfix
authorChristian Grothoff <christian@grothoff.org>
Mon, 26 Jul 2010 17:00:26 +0000 (17:00 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 26 Jul 2010 17:00:26 +0000 (17:00 +0000)
src/transport/gnunet-service-transport.c
src/transport/plugin_transport_udp.c
src/transport/test_plugin_transport.c
src/transport/transport.h

index c1dc60fd0e699d5c5f598e2f98f69f0b7c0cf858..eda1fec7efc1b3daa8638dd1dc1a6a63c8773f88 100644 (file)
@@ -43,7 +43,7 @@
 
 #define DEBUG_PING_PONG GNUNET_NO
 
-#define DEBUG_TRANSPORT_HELLO GNUNET_YES
+#define DEBUG_TRANSPORT_HELLO GNUNET_NO
 
 /**
  * Should we do some additional checks (to validate behavior
index 5dbb94bcbfb0f664be383daa8505b34ca3e6395b..5b5aaf88266c9b653336440786030ea524a2c1e4 100644 (file)
@@ -762,6 +762,8 @@ udp_plugin_send (void *cls,
   int other_peer_natd;
   const struct IPv4UdpAddress *t4;
 
+  if (force_address == GNUNET_SYSERR)
+    return GNUNET_SYSERR;
   GNUNET_assert (NULL == session);
 
   other_peer_natd = GNUNET_NO;
@@ -1439,8 +1441,10 @@ udp_demultiplexer(struct Plugin *plugin, struct GNUNET_PeerIdentity *sender,
       break;
     default:
 #if DEBUG_UDP
-      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-                       _("Sending message type %d to transport!\n"), ntohs(currhdr->type));
+      GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
+                      "udp",
+                       "Sending message type %d to transport!\n", 
+                      ntohs(currhdr->type));
 #endif
       plugin->env->receive (plugin->env->cls, sender, currhdr, UDP_DIRECT_DISTANCE, 
                            NULL, sender_addr, fromlen);
index ccaefd042b801489719ad3f6decac7a07af15ce3..aee4901dbe1333601d6409911291dbcd6e4827fb 100644 (file)
@@ -90,7 +90,6 @@ struct GNUNET_TRANSPORT_PluginFunctions *api;
 static int ok;
 
 /**
- * Initialize Environment for this plugin
  */
 static void
 receive (void *cls,
index aa934c944e9dac8c4eebca1a8887e40003a30463..d73e17cdc4c1cdbae8ff36dfa9af83a104ebe551 100644 (file)
@@ -30,7 +30,7 @@
 #include "gnunet_time_lib.h"
 #include "gnunet_transport_service.h"
 
-#define DEBUG_TRANSPORT GNUNET_NO
+#define DEBUG_TRANSPORT GNUNET_YES
 #define DEBUG_TRANSPORT_TIMEOUT GNUNET_NO
 #define DEBUG_TRANSPORT_DISCONNECT GNUNET_NO