aboutsummaryrefslogtreecommitdiff
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
parent7595e5de319265cadbd3fc8ccceb97a29e9111f3 (diff)
downloadgnunet-24c7345ea01a015a00a711e91eb893c5c1018abc.tar.gz
gnunet-24c7345ea01a015a00a711e91eb893c5c1018abc.zip
move
-rw-r--r--BUGS94
-rw-r--r--TODO117
-rw-r--r--contrib/defaults.conf2
-rw-r--r--src/core/core.h2
-rw-r--r--src/datastore/plugin_datastore_sqlite.c2
-rw-r--r--src/fs/fs_test_lib_data.conf2
-rw-r--r--src/fs/gnunet-service-fs_indexing.c2
-rw-r--r--src/fs/test_fs_download_data.conf2
-rw-r--r--src/hostlist/hostlist-client.c2
-rw-r--r--src/hostlist/hostlist-server.c2
-rw-r--r--src/peerinfo/peerinfo.h2
-rw-r--r--src/testing/test_testing_data_topology_clique.conf2
-rw-r--r--src/topology/gnunet-daemon-topology.c2
-rw-r--r--src/topology/test_gnunet_service_topology_data.conf6
-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
20 files changed, 117 insertions, 138 deletions
diff --git a/BUGS b/BUGS
deleted file mode 100644
index 67c7b407f..000000000
--- a/BUGS
+++ /dev/null
@@ -1,94 +0,0 @@
1This file lists minor work items (also possibly called "known bugs").
2We are not tracking them in Mantis yet since there are too many and no
3sane end-user should care about this codebase yet anyway.
4
5
6* UTIL:
7 - only connect() sockets that are ready (select()) [Nils]
8 [On W32, we need to select after calling socket before
9 doing connect etc.]
10* TRANSPORT:
11 - implement transport API to pretty-print transport address
12 + transport_api extension (API extension!)
13 + service-transport extension (protocol extension)
14 - add calls to statistics in various places
15 - implement gnunet-transport (transport configurator / tester)
16 - UPnP-based IP detection
17 (Note: build library always, build service when libxml2/etc. are available)
18 - instantly filter addresses from *other* peers that
19 are *equal* to our own address + port (i.e., localhost:2086). We
20 no longer filter those for outgoing (helps with loopback testing
21 and keeps the code clean), but we should filter strictly *impossible*
22 incoming addresses! This is for efficiency, not correctness.
23 - We currently are happy to take any address told to us in a WELCOME
24 to our set of addresses; we should have some minimal threshold-based
25 scheme, limiting both the total number of addresses that we accept
26 this way as well as requiring multiple confirmations; also, we
27 should possibly try to confirm that the given address works for
28 us ourselves (loopback-style) before adding it to the list
29 [SECURITY issue]
30 + we may be able to simplify WELCOME messages (no need to add
31 addresses there anymore, but may help to learn them there anyway...).
32 + we probably want some kind of voting/counting for learning IP addresses
33 (maybe including IP addresses in ads proportional to how often others
34 report them? we at least need some protection against >64k HELLOs!),
35 + provide a way to give the user a list of "learned" IP addresses and
36 a way to easily "veto" addresses off the list!
37 => If MiM attacker uses vetoed address, blacklist the specific IP for
38 the presumed neighbour!
39 - [./transport/gnunet-service-transport.c:173]: (style) struct or union member 'TransportPlugin::rebuild' is never used
40 - [./transport/plugin_transport_tcp.c:391]: (style) struct or union member 'Plugin::address_update_task' is never used
41* FS:
42 - [./fs/gnunet-service-fs.c:208]: (style) struct or union member 'LocalGetContext::results_bf_size' is never used
43 - [./fs/gnunet-service-fs.c:501]: (style) struct or union member 'PendingRequest::used_pids_size' is never used
44 - [./fs/gnunet-service-fs.c:654]: (style) struct or union member 'ConnectedPeer::last_client_replies' is never used
45 - [./fs/gnunet-service-fs.c:669]: (style) struct or union member 'ConnectedPeer::avg_delay' is never used
46 - [./fs/gnunet-service-fs.c:675]: (style) struct or union member 'ConnectedPeer::avg_priority' is never used
47 - [./fs/gnunet-service-fs.c:688]: (style) struct or union member 'ConnectedPeer::pending_requests' is never used
48 - [./fs/gnunet-service-fs.c:694]: (style) struct or union member 'ConnectedPeer::last_p2p_replies_woff' is never used
49 - [./fs/gnunet-service-fs.c:700]: (style) struct or union member 'ConnectedPeer::last_client_replies_woff' is never used
50* TOPOLOGY:
51 - If the topology daemon crashes, peers that were put on the
52 blacklist with transport will never be removed from it (until
53 transport service dies); we should use the blacklist notification
54 API to learn about the exact set of blacklisted peers at all times
55 (FIXME: the transport_api implementation of blacklisting
56 also does not work nicely for this since it won't let us know about
57 disconnect-reconnect events and the implicit whitelisting
58 that might happen here; that's not so bad since we will
59 re-blacklist on pre-connect attempts anyway, so this is
60 a minor issue).
61 - the code uses the term 'blacklist' for both peers that are forbidden
62 to connect (i.e. F2F mode) as well as peers that we currently
63 won't try to actively connect to ourselves (since we just tried);
64 This is confusing. We need two distinct terms.
65 - move code to use hash table instead of linked list
66 - instead of periodically discarding blacklisted entries,
67 simply add task that is triggered at the right time (earlier free,
68 more balanced load)
69 - check if new HELLO learned is different from old HELLO
70 before resetting entire state!
71* SETUP:
72 - auto-generate "defaults.conf" using gnunet-setup from "config.scm"
73 - integrate all options into "config.scm"
74 - change config-file writing to exclude options set to default values
75* ARM:
76 - better tracking of which config changes actually need to cause process restarts by ARM.
77 - listen for requests to discover dependencies between services (and avoid
78 having to explicitly program start requests)
79 - better crash management (attach debugging support, capture and analyze
80 debug output, detect random vs. deterministic crashes)
81 - shutdown sequence?
82* HTTPS transport
83 - Better SSL-support for MHD
84 - https integration
85* GAP improvements:
86 - active reply route caching design & implementation of service,
87 gap extension!
88* TESTING:
89 - consider changing API for peer-group termination to
90 call continuation when done
91
92* HOSTLIST:
93 - 'server' uses 'GNUNET_PEERINFO_iterate', should probably switch to notification API
94 (for more instant / up-to-date hostlists at lower cost) [OPTIMIZATION]
diff --git a/TODO b/TODO
index bde3d97b4..0d2725793 100644
--- a/TODO
+++ b/TODO
@@ -14,11 +14,61 @@ away), in order in which they will likely be done:
14* FS [Christian] 14* FS [Christian]
15 15
160.9.0pre0: 160.9.0pre0:
17* HOSTLIST/PEERINFO/CORE/TRANSPORT/TOPOLOGY: 17* TRANSPORT:
18 - hostlist server learns about 2nd peer, but soon forgets (not 18 - TCP not used bi-directionally (especially important also for PONG!)
19 clear if this is still an issue, or if validation failed or 19 Need a way for plugin to tell to service that it can *reliably* transmit
20 if this was an issue with the client's parsing of the reply, which 20 PONGs. Need *good* way to ensure only one (plugin) session is active at
21 was broken...) 21 any given point in time; need systematic way to periodically probe latency/
22 transport cost changes
23 - disconnect notifications from TCP not always as nice as we might want
24 them to be (but how can we do this cleanly given that UDP is connectionless?)
25 - hostlist testcase shows that (randomly) we jump to an address that
26 seems to be a plugin function *after* the plugin has been unloaded
27 (directly from scheduler); check that *all* plugin tasks are cancelled
28 after plugin is unloaded! (need better testcases for that...)
29 - implement transport API to pretty-print transport address
30 + transport_api extension (API extension!)
31 + service-transport extension (protocol extension)
32 - implement gnunet-transport (transport configurator / tester)
33 - instantly filter addresses from *other* peers that
34 are *equal* to our own address + port (i.e., localhost:2086). We
35 no longer filter those for outgoing (helps with loopback testing
36 and keeps the code clean), but we should filter strictly *impossible*
37 incoming addresses! This is for efficiency, not correctness.
38 - UPnP-based IP detection
39 (Note: build library always, build service when libxml2/etc. are available)
40 - We currently are happy to take any address told to us in a WELCOME
41 to our set of addresses; we should have some minimal threshold-based
42 scheme, limiting both the total number of addresses that we accept
43 this way as well as requiring multiple confirmations; also, we
44 should possibly try to confirm that the given address works for
45 us ourselves (loopback-style) before adding it to the list
46 [SECURITY issue]
47 + we may be able to simplify WELCOME messages (no need to add
48 addresses there anymore, but may help to learn them there anyway...).
49 + we probably want some kind of voting/counting for learning IP addresses
50 (maybe including IP addresses in ads proportional to how often others
51 report them? we at least need some protection against >64k HELLOs!),
52 + provide a way to give the user a list of "learned" IP addresses and
53 a way to easily "veto" addresses off the list!
54 => If MiM attacker uses vetoed address, blacklist the specific IP for
55 the presumed neighbour!
56 - [./transport/gnunet-service-transport.c:173]: (style) struct or union member 'TransportPlugin::rebuild' is never used
57 - [./transport/plugin_transport_tcp.c:391]: (style) struct or union member 'Plugin::address_update_task' is never used
58* FS:
59 - [./fs/gnunet-service-fs.c:208]: (style) struct or union member 'LocalGetContext::results_bf_size' is never used
60 - [./fs/gnunet-service-fs.c:501]: (style) struct or union member 'PendingRequest::used_pids_size' is never used
61 - [./fs/gnunet-service-fs.c:654]: (style) struct or union member 'ConnectedPeer::last_client_replies' is never used
62 - [./fs/gnunet-service-fs.c:669]: (style) struct or union member 'ConnectedPeer::avg_delay' is never used
63 - [./fs/gnunet-service-fs.c:675]: (style) struct or union member 'ConnectedPeer::avg_priority' is never used
64 - [./fs/gnunet-service-fs.c:688]: (style) struct or union member 'ConnectedPeer::pending_requests' is never used
65 - [./fs/gnunet-service-fs.c:694]: (style) struct or union member 'ConnectedPeer::last_p2p_replies_woff' is never used
66 - [./fs/gnunet-service-fs.c:700]: (style) struct or union member 'ConnectedPeer::last_client_replies_woff' is never used
67* CORE:
68 - SET_KEY is triggered every 2.5 minutes (after session is up); should
69 just do PING (not SET_KEY + PING)
70 - "Forcing disconnect of XXX due to inactivity" -- can happen every few MS!?
71 (disconnect does not really succeed, or what?)
22* TOPOLOGY: 72* TOPOLOGY:
23 - needs more testing (especially F2F topology) 73 - needs more testing (especially F2F topology)
24 - needs to re-try connecting after disconnect (currently, it 74 - needs to re-try connecting after disconnect (currently, it
@@ -27,28 +77,34 @@ away), in order in which they will likely be done:
27 cause seems to be the 'blacklist_after_attempt' being set to 1h, 77 cause seems to be the 'blacklist_after_attempt' being set to 1h,
28 which is rather long -- and should probably be adjusted based on 78 which is rather long -- and should probably be adjusted based on
29 the number of connections / known peers) 79 the number of connections / known peers)
30* CORE: 80 - If the topology daemon crashes, peers that were put on the
31 - peers do not seem to connect (setkey, ping are there; PONG is sent, 81 blacklist with transport will never be removed from it (until
32 not sure what else happens; eventually, the "neighbour" entry times 82 transport service dies); we should use the blacklist notification
33 out and is removed) 83 API to learn about the exact set of blacklisted peers at all times
84 (FIXME: the transport_api implementation of blacklisting
85 also does not work nicely for this since it won't let us know about
86 disconnect-reconnect events and the implicit whitelisting
87 that might happen here; that's not so bad since we will
88 re-blacklist on pre-connect attempts anyway, so this is
89 a minor issue).
90 - the code uses the term 'blacklist' for both peers that are forbidden
91 to connect (i.e. F2F mode) as well as peers that we currently
92 won't try to actively connect to ourselves (since we just tried);
93 This is confusing. We need two distinct terms.
94 - move code to use hash table instead of linked list
95 - instead of periodically discarding blacklisted entries,
96 simply add task that is triggered at the right time (earlier free,
97 more balanced load)
98 - check if new HELLO learned is different from old HELLO
99 before resetting entire state!
34* UTIL: 100* UTIL:
35 - load: need way to determine network load (up/down) -- and quickly so!
36 - trust: need *fast* way to check/update trust in peers 101 - trust: need *fast* way to check/update trust in peers
37 (async peerinfo would not be right) 102 (async peerinfo would not be right)
38 - scheduler should change OS process priority based on task priority; 103 - scheduler should change OS process priority based on task priority;
39 should make better use of task priorities in general 104 should make better use of task priorities in general
40* TRANSPORT: 105 - only connect() sockets that are ready (select()) [Nils]
41 - disconnect notifications from TCP not always as nice as we might want 106 [On W32, we need to select after calling socket before
42 them to be (but how can we do this cleanly given that UDP is connectionless?) 107 doing connect etc.]
43 - TCP not used bi-directionally (especially important also for PONG!)
44 Need a way for plugin to tell to service that it can *reliably* transmit
45 PONGs. Need *good* way to ensure only one (plugin) session is active at
46 any given point in time; need systematic way to periodically probe latency/
47 transport cost changes
48 - hostlist testcase shows that (randomly) we jump to an address that
49 seems to be a plugin function *after* the plugin has been unloaded
50 (directly from scheduler); check that *all* plugin tasks are cancelled
51 after plugin is unloaded! (need better testcases for that...)
52* STATISTICS: 108* STATISTICS:
53 - synchronous/asynchronous API (& implementation) is not nice; 109 - synchronous/asynchronous API (& implementation) is not nice;
54 => provide notification-based API 110 => provide notification-based API
@@ -58,9 +114,18 @@ away), in order in which they will likely be done:
58* ARM: 114* ARM:
59 - need to get rid of synchronous API for service starts (cause all kinds of problems) 115 - need to get rid of synchronous API for service starts (cause all kinds of problems)
60 [=> eliminate for need to tell ARM about service starts most of the time!] [Safey] 116 [=> eliminate for need to tell ARM about service starts most of the time!] [Safey]
117 - better tracking of which config changes actually need to cause process restarts by ARM.
118 - listen for requests to discover dependencies between services (and avoid
119 having to explicitly program start requests)
120 - better crash management (attach debugging support, capture and analyze
121 debug output, detect random vs. deterministic crashes)
122 - shutdown sequence?
61* HELLO: 123* HELLO:
62 - need function to test "equivalency" of HELLOs; use in topology! 124 - need function to test "equivalency" of HELLOs; use in topology!
63* FS: 125* FS:
126 - GAP improvements:
127 + active reply route caching design & implementation of service,
128 gap extension!
64 - gnunet-publish cannot be aborted using CTRL-C 129 - gnunet-publish cannot be aborted using CTRL-C
65 - gnunet-publish segfaults if file does not exist 130 - gnunet-publish segfaults if file does not exist
66 - on some systems, keyword search does not find locally published content 131 - on some systems, keyword search does not find locally published content
@@ -112,6 +177,9 @@ away), in order in which they will likely be done:
112 + test basic peer re-configure [Nate] 177 + test basic peer re-configure [Nate]
113 + test topology creation [Nate] 178 + test topology creation [Nate]
114 + test churn generation [Nate] 179 + test churn generation [Nate]
180* TESTING:
181 - consider changing API for peer-group termination to
182 call continuation when done
115* WWW: 183* WWW:
116 - Get IPv6 hooked up 184 - Get IPv6 hooked up
117 - change DNS 185 - change DNS
@@ -127,9 +195,14 @@ away), in order in which they will likely be done:
127 + implement DV transport plugin [Nate & CG] 195 + implement DV transport plugin [Nate & CG]
128 + implement testcases [Nate] 196 + implement testcases [Nate]
129 + implement performance tests [Nate] 197 + implement performance tests [Nate]
198* SETUP:
199 - design & implement new setup tool
130* GUIs to implement: 200* GUIs to implement:
131 - gtk (RC-pre1) 201 - gtk (RC-pre1)
132 + how to integrate scheduler with GTK event loop! 202 + how to integrate scheduler with GTK event loop!
203* HOSTLIST:
204 - 'server' uses 'GNUNET_PEERINFO_iterate', should probably switch to notification API
205 (for more instant / up-to-date hostlists at lower cost) [OPTIMIZATION]
133 206
1340.9.0pre2: 2070.9.0pre2:
135* Module features to implement: 208* Module features to implement:
diff --git a/contrib/defaults.conf b/contrib/defaults.conf
index 7e194ad08..f7750a0a8 100644
--- a/contrib/defaults.conf
+++ b/contrib/defaults.conf
@@ -136,7 +136,7 @@ ALLOW_SHUTDOWN = YES
136# quotas are in bytes per second now! 136# quotas are in bytes per second now!
137TOTAL_QUOTA_IN = 65536 137TOTAL_QUOTA_IN = 65536
138TOTAL_QUOTA_OUT = 65536 138TOTAL_QUOTA_OUT = 65536
139DEBUG = YES 139# DEBUG = YES
140# USERNAME = 140# USERNAME =
141# MAXBUF = 141# MAXBUF =
142# TIMEOUT = 142# TIMEOUT =
diff --git a/src/core/core.h b/src/core/core.h
index 45d138140..ea2925797 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -29,7 +29,7 @@
29/** 29/**
30 * General core debugging. 30 * General core debugging.
31 */ 31 */
32#define DEBUG_CORE GNUNET_YES 32#define DEBUG_CORE GNUNET_NO
33 33
34/** 34/**
35 * Debugging interaction core-clients. 35 * Debugging interaction core-clients.
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c
index aa90859d6..1d38f8326 100644
--- a/src/datastore/plugin_datastore_sqlite.c
+++ b/src/datastore/plugin_datastore_sqlite.c
@@ -29,7 +29,7 @@
29#include "plugin_datastore.h" 29#include "plugin_datastore.h"
30#include <sqlite3.h> 30#include <sqlite3.h>
31 31
32#define DEBUG_SQLITE GNUNET_YES 32#define DEBUG_SQLITE GNUNET_NO
33 33
34/** 34/**
35 * After how many payload-changing operations 35 * After how many payload-changing operations
diff --git a/src/fs/fs_test_lib_data.conf b/src/fs/fs_test_lib_data.conf
index 20004ab16..fb1bdc533 100644
--- a/src/fs/fs_test_lib_data.conf
+++ b/src/fs/fs_test_lib_data.conf
@@ -42,7 +42,7 @@ PORT = 43470
42HOSTNAME = localhost 42HOSTNAME = localhost
43#TOTAL_QUOTA_IN = 3932160 43#TOTAL_QUOTA_IN = 3932160
44#TOTAL_QUOTA_OUT = 3932160 44#TOTAL_QUOTA_OUT = 3932160
45DEBUG = YES 45#DEBUG = YES
46#PREFIX = valgrind --tool=memcheck --leak-check=yes 46#PREFIX = valgrind --tool=memcheck --leak-check=yes
47#BINARY = /home/grothoff/bin/gnunet-service-core 47#BINARY = /home/grothoff/bin/gnunet-service-core
48 48
diff --git a/src/fs/gnunet-service-fs_indexing.c b/src/fs/gnunet-service-fs_indexing.c
index 37ef08ba5..ca9a226a2 100644
--- a/src/fs/gnunet-service-fs_indexing.c
+++ b/src/fs/gnunet-service-fs_indexing.c
@@ -38,7 +38,7 @@
38#include "gnunet-service-fs_indexing.h" 38#include "gnunet-service-fs_indexing.h"
39#include "fs.h" 39#include "fs.h"
40 40
41#define DEBUG_FS GNUNET_YES 41#define DEBUG_FS GNUNET_NO
42 42
43/** 43/**
44 * In-memory information about indexed files (also available 44 * In-memory information about indexed files (also available
diff --git a/src/fs/test_fs_download_data.conf b/src/fs/test_fs_download_data.conf
index e4aa966d5..366a30844 100644
--- a/src/fs/test_fs_download_data.conf
+++ b/src/fs/test_fs_download_data.conf
@@ -19,7 +19,7 @@ HOSTNAME = localhost
19DEFAULTSERVICES = resolver datastore transport core fs 19DEFAULTSERVICES = resolver datastore transport core fs
20 20
21[datastore] 21[datastore]
22DEBUG = YES 22# DEBUG = YES
23 23
24[statistics] 24[statistics]
25PORT = 42467 25PORT = 42467
diff --git a/src/hostlist/hostlist-client.c b/src/hostlist/hostlist-client.c
index 90d67ee75..1c0deb511 100644
--- a/src/hostlist/hostlist-client.c
+++ b/src/hostlist/hostlist-client.c
@@ -32,7 +32,7 @@
32#include "gnunet_transport_service.h" 32#include "gnunet_transport_service.h"
33#include <curl/curl.h> 33#include <curl/curl.h>
34 34
35#define DEBUG_HOSTLIST_CLIENT GNUNET_YES 35#define DEBUG_HOSTLIST_CLIENT GNUNET_NO
36 36
37/** 37/**
38 * Number of connections that we must have to NOT download 38 * Number of connections that we must have to NOT download
diff --git a/src/hostlist/hostlist-server.c b/src/hostlist/hostlist-server.c
index 5c5571ff6..bd4203475 100644
--- a/src/hostlist/hostlist-server.c
+++ b/src/hostlist/hostlist-server.c
@@ -30,7 +30,7 @@
30#include "gnunet_hello_lib.h" 30#include "gnunet_hello_lib.h"
31#include "gnunet_peerinfo_service.h" 31#include "gnunet_peerinfo_service.h"
32 32
33#define DEBUG_HOSTLIST_SERVER GNUNET_YES 33#define DEBUG_HOSTLIST_SERVER GNUNET_NO
34 34
35/** 35/**
36 * How often should we recalculate our response to hostlist requests? 36 * How often should we recalculate our response to hostlist requests?
diff --git a/src/peerinfo/peerinfo.h b/src/peerinfo/peerinfo.h
index 4cb52fa7c..607aad4db 100644
--- a/src/peerinfo/peerinfo.h
+++ b/src/peerinfo/peerinfo.h
@@ -27,7 +27,7 @@
27#include "gnunet_time_lib.h" 27#include "gnunet_time_lib.h"
28#include "gnunet_peerinfo_service.h" 28#include "gnunet_peerinfo_service.h"
29 29
30#define DEBUG_PEERINFO GNUNET_YES 30#define DEBUG_PEERINFO GNUNET_NO
31 31
32/** 32/**
33 * Add the given peer to the list. This message 33 * Add the given peer to the list. This message
diff --git a/src/testing/test_testing_data_topology_clique.conf b/src/testing/test_testing_data_topology_clique.conf
index 1a0dd9d7d..78e4a94e1 100644
--- a/src/testing/test_testing_data_topology_clique.conf
+++ b/src/testing/test_testing_data_topology_clique.conf
@@ -31,7 +31,7 @@ PORT = 2569
31PORT = 2570 31PORT = 2570
32#PREFIX = xterm -e xterm -T CORE -e gdb --args 32#PREFIX = xterm -e xterm -T CORE -e gdb --args
33#PREFIX = valgrind --tool=memcheck --log-file=logs%p 33#PREFIX = valgrind --tool=memcheck --log-file=logs%p
34DEBUG = YES 34#DEBUG = YES
35 35
36[testing] 36[testing]
37NUM_PEERS = 4 37NUM_PEERS = 4
diff --git a/src/topology/gnunet-daemon-topology.c b/src/topology/gnunet-daemon-topology.c
index 789efcd6e..b466dfbbe 100644
--- a/src/topology/gnunet-daemon-topology.c
+++ b/src/topology/gnunet-daemon-topology.c
@@ -34,7 +34,7 @@
34#include "gnunet_util_lib.h" 34#include "gnunet_util_lib.h"
35 35
36 36
37#define DEBUG_TOPOLOGY GNUNET_YES 37#define DEBUG_TOPOLOGY GNUNET_NO
38 38
39/** 39/**
40 * For how long do we blacklist a peer after a failed connection 40 * For how long do we blacklist a peer after a failed connection
diff --git a/src/topology/test_gnunet_service_topology_data.conf b/src/topology/test_gnunet_service_topology_data.conf
index d429e6c2c..d920e9e88 100644
--- a/src/topology/test_gnunet_service_topology_data.conf
+++ b/src/topology/test_gnunet_service_topology_data.conf
@@ -8,7 +8,7 @@ PORT = 2664
8[transport] 8[transport]
9PORT = 2665 9PORT = 2665
10PLUGINS = tcp 10PLUGINS = tcp
11DEBUG = YES 11# DEBUG = YES
12#PREFIX = xterm -e xterm -T transport -e gdb -x cmd --args 12#PREFIX = xterm -e xterm -T transport -e gdb -x cmd --args
13#PREFIX = valgrind --tool=memcheck --log-file=logs%p 13#PREFIX = valgrind --tool=memcheck --log-file=logs%p
14 14
@@ -27,10 +27,10 @@ PORT = 2669
27 27
28[core] 28[core]
29PORT = 2670 29PORT = 2670
30DEBUG = YES 30# DEBUG = YES
31 31
32[topology] 32[topology]
33DEBUG = YES 33# DEBUG = YES
34#PREFIX = valgrind --tool=memcheck 34#PREFIX = valgrind --tool=memcheck
35 35
36[testing] 36[testing]
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