aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-03-18 11:43:23 +0000
committerChristian Grothoff <christian@grothoff.org>2010-03-18 11:43:23 +0000
commit24c7345ea01a015a00a711e91eb893c5c1018abc (patch)
tree26db642de762223fc51f7208ee217dcc2acf1496 /src/transport
parent7595e5de319265cadbd3fc8ccceb97a29e9111f3 (diff)
downloadgnunet-24c7345ea01a015a00a711e91eb893c5c1018abc.tar.gz
gnunet-24c7345ea01a015a00a711e91eb893c5c1018abc.zip
move
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/Makefile.am2
-rw-r--r--src/transport/plugin_transport_udp.c3
-rw-r--r--src/transport/plugin_transport_udp_nat.c2
-rw-r--r--src/transport/test_plugin_transport.c2
-rw-r--r--src/transport/test_transport_api_udp_peer2.conf1
-rw-r--r--src/transport/transport.h6
6 files changed, 8 insertions, 8 deletions
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am
index 0094c6d0e..7d9974c6b 100644
--- a/src/transport/Makefile.am
+++ b/src/transport/Makefile.am
@@ -123,7 +123,7 @@ test_transport_api_udp_SOURCES = \
123test_transport_api_udp_LDADD = \ 123test_transport_api_udp_LDADD = \
124 $(top_builddir)/src/transport/libgnunettransport.la \ 124 $(top_builddir)/src/transport/libgnunettransport.la \
125 $(top_builddir)/src/util/libgnunetutil.la 125 $(top_builddir)/src/util/libgnunetutil.la
126 126
127test_transport_api_udp_nat_SOURCES = \ 127test_transport_api_udp_nat_SOURCES = \
128 test_transport_api.c 128 test_transport_api.c
129test_transport_api_udp_nat_LDADD = \ 129test_transport_api_udp_nat_LDADD = \
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index 5bf555c90..094b207f4 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -690,14 +690,13 @@ udp_plugin_address_pretty_printer (void *cls,
690void * 690void *
691libgnunet_plugin_transport_udp_init (void *cls) 691libgnunet_plugin_transport_udp_init (void *cls)
692{ 692{
693 unsigned long long mtu;
694
695 struct GNUNET_TRANSPORT_PluginEnvironment *env = cls; 693 struct GNUNET_TRANSPORT_PluginEnvironment *env = cls;
696 struct GNUNET_TRANSPORT_PluginFunctions *api; 694 struct GNUNET_TRANSPORT_PluginFunctions *api;
697 struct Plugin *plugin; 695 struct Plugin *plugin;
698 struct GNUNET_SERVICE_Context *service; 696 struct GNUNET_SERVICE_Context *service;
699 unsigned long long aport; 697 unsigned long long aport;
700 unsigned long long bport; 698 unsigned long long bport;
699 unsigned long long mtu;
701 700
702 service = GNUNET_SERVICE_start ("transport-udp", env->sched, env->cfg); 701 service = GNUNET_SERVICE_start ("transport-udp", env->sched, env->cfg);
703 if (service == NULL) 702 if (service == NULL)
diff --git a/src/transport/plugin_transport_udp_nat.c b/src/transport/plugin_transport_udp_nat.c
index cbda5c6bc..3733130e2 100644
--- a/src/transport/plugin_transport_udp_nat.c
+++ b/src/transport/plugin_transport_udp_nat.c
@@ -54,7 +54,7 @@
54#include "plugin_transport.h" 54#include "plugin_transport.h"
55#include "transport.h" 55#include "transport.h"
56 56
57#define DEBUG_UDP_NAT GNUNET_YES 57#define DEBUG_UDP_NAT GNUNET_NO
58 58
59/* 59/*
60 * Transport cost to peer, always 1 for UDP (direct connection) 60 * Transport cost to peer, always 1 for UDP (direct connection)
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c
index f9539430e..2248f007e 100644
--- a/src/transport/test_plugin_transport.c
+++ b/src/transport/test_plugin_transport.c
@@ -37,7 +37,7 @@
37#include "plugin_transport.h" 37#include "plugin_transport.h"
38#include "transport.h" 38#include "transport.h"
39 39
40#define VERBOSE GNUNET_YES 40#define VERBOSE GNUNET_NO
41 41
42/** 42/**
43 * How long until we give up on transmitting the message? 43 * How long until we give up on transmitting the message?
diff --git a/src/transport/test_transport_api_udp_peer2.conf b/src/transport/test_transport_api_udp_peer2.conf
index 14ae37f6b..e65633e1a 100644
--- a/src/transport/test_transport_api_udp_peer2.conf
+++ b/src/transport/test_transport_api_udp_peer2.conf
@@ -72,6 +72,7 @@ CONFIG = $DEFAULTCONFIG
72HOME = $SERVICEHOME 72HOME = $SERVICEHOME
73HOSTNAME = localhost 73HOSTNAME = localhost
74PORT = 22365 74PORT = 22365
75# PREFIX = valgrind --track-origins=yes --leak-check=full --log-file=valgrind_udp_peer2.log
75 76
76[peerinfo] 77[peerinfo]
77TRUST = $SERVICEHOME/data/credit/ 78TRUST = $SERVICEHOME/data/credit/
diff --git a/src/transport/transport.h b/src/transport/transport.h
index d66b87b35..acaa20a52 100644
--- a/src/transport/transport.h
+++ b/src/transport/transport.h
@@ -30,9 +30,9 @@
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_YES 33#define DEBUG_TRANSPORT GNUNET_NO
34#define DEBUG_TRANSPORT_TIMEOUT GNUNET_YES 34#define DEBUG_TRANSPORT_TIMEOUT GNUNET_NO
35#define DEBUG_TRANSPORT_DISCONNECT GNUNET_YES 35#define DEBUG_TRANSPORT_DISCONNECT GNUNET_NO
36 36
37/** 37/**
38 * For how long do we allow unused bandwidth 38 * For how long do we allow unused bandwidth