aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/transport/gnunet-service-transport.c2
-rw-r--r--src/transport/plugin_transport_udp.c8
-rw-r--r--src/transport/test_plugin_transport.c1
-rw-r--r--src/transport/transport.h2
4 files changed, 8 insertions, 5 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index c1dc60fd0..eda1fec7e 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -43,7 +43,7 @@
43 43
44#define DEBUG_PING_PONG GNUNET_NO 44#define DEBUG_PING_PONG GNUNET_NO
45 45
46#define DEBUG_TRANSPORT_HELLO GNUNET_YES 46#define DEBUG_TRANSPORT_HELLO GNUNET_NO
47 47
48/** 48/**
49 * Should we do some additional checks (to validate behavior 49 * Should we do some additional checks (to validate behavior
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 5dbb94bcb..5b5aaf882 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -762,6 +762,8 @@ udp_plugin_send (void *cls,
762 int other_peer_natd; 762 int other_peer_natd;
763 const struct IPv4UdpAddress *t4; 763 const struct IPv4UdpAddress *t4;
764 764
765 if (force_address == GNUNET_SYSERR)
766 return GNUNET_SYSERR;
765 GNUNET_assert (NULL == session); 767 GNUNET_assert (NULL == session);
766 768
767 other_peer_natd = GNUNET_NO; 769 other_peer_natd = GNUNET_NO;
@@ -1439,8 +1441,10 @@ udp_demultiplexer(struct Plugin *plugin, struct GNUNET_PeerIdentity *sender,
1439 break; 1441 break;
1440 default: 1442 default:
1441#if DEBUG_UDP 1443#if DEBUG_UDP
1442 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1444 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
1443 _("Sending message type %d to transport!\n"), ntohs(currhdr->type)); 1445 "udp",
1446 "Sending message type %d to transport!\n",
1447 ntohs(currhdr->type));
1444#endif 1448#endif
1445 plugin->env->receive (plugin->env->cls, sender, currhdr, UDP_DIRECT_DISTANCE, 1449 plugin->env->receive (plugin->env->cls, sender, currhdr, UDP_DIRECT_DISTANCE,
1446 NULL, sender_addr, fromlen); 1450 NULL, sender_addr, fromlen);
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c
index ccaefd042..aee4901db 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -90,7 +90,6 @@ struct GNUNET_TRANSPORT_PluginFunctions *api;
90static int ok; 90static int ok;
91 91
92/** 92/**
93 * Initialize Environment for this plugin
94 */ 93 */
95static void 94static void
96receive (void *cls, 95receive (void *cls,
diff --git a/src/transport/transport.h b/src/transport/transport.h
index aa934c944..d73e17cdc 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -30,7 +30,7 @@
30#include "gnunet_time_lib.h" 30#include "gnunet_time_lib.h"
31#include "gnunet_transport_service.h" 31#include "gnunet_transport_service.h"
32 32
33#define DEBUG_TRANSPORT GNUNET_NO 33#define DEBUG_TRANSPORT GNUNET_YES
34#define DEBUG_TRANSPORT_TIMEOUT GNUNET_NO 34#define DEBUG_TRANSPORT_TIMEOUT GNUNET_NO
35#define DEBUG_TRANSPORT_DISCONNECT GNUNET_NO 35#define DEBUG_TRANSPORT_DISCONNECT GNUNET_NO
36 36