aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-10-06 13:53:19 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-10-06 13:53:19 +0000
commit09aa75cc9decb90576828b4e2b7507301e4c5eb2 (patch)
treed3d58141159de3ba4b7ab74c3da65f2fe222cd05 /src/transport
parentf4fe8bab5de36e553b49f8ef896cd72b55f21b08 (diff)
downloadgnunet-09aa75cc9decb90576828b4e2b7507301e4c5eb2.tar.gz
gnunet-09aa75cc9decb90576828b4e2b7507301e4c5eb2.zip
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/plugin_transport_http.c8
-rw-r--r--src/transport/plugin_transport_http.h8
-rw-r--r--src/transport/test_transport_api_http_nat_peer1.conf2
3 files changed, 6 insertions, 12 deletions
diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c
index 3c61cf242..857f5c83b 100644
--- a/src/transport/plugin_transport_http.c
+++ b/src/transport/plugin_transport_http.c
@@ -763,22 +763,16 @@ nat_port_map_callback (void *cls, int add_remove, const struct sockaddr *addr,
763#if DEBUG_HTTP 763#if DEBUG_HTTP
764 struct Plugin *plugin = cls; 764 struct Plugin *plugin = cls;
765#endif 765#endif
766 //static int limit;
767#if DEBUG_HTTP 766#if DEBUG_HTTP
768 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, 767 GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name,
769 "NPMC called %s to address `%s'\n", 768 "NPMC called %s to address `%s'\n",
770 (add_remove == GNUNET_NO) ? "remove" : "add", 769 (add_remove == GNUNET_NO) ? "remove" : "add",
771 GNUNET_a2s (addr, addrlen)); 770 GNUNET_a2s (addr, addrlen));
772#endif 771#endif
773 /* convert 'addr' to our internal format */
774 switch (add_remove) 772 switch (add_remove)
775 { 773 {
776 case GNUNET_YES: 774 case GNUNET_YES:
777 // FIXME DEBUGGING
778 //if (limit < 1)
779 nat_add_address (cls, add_remove, addr, addrlen); 775 nat_add_address (cls, add_remove, addr, addrlen);
780 //limit++;
781 // FIXME END
782 break; 776 break;
783 case GNUNET_NO: 777 case GNUNET_NO:
784 nat_remove_address (cls, add_remove, addr, addrlen); 778 nat_remove_address (cls, add_remove, addr, addrlen);
diff --git a/src/transport/plugin_transport_http.h b/src/transport/plugin_transport_http.h
index e62c980b4..d5fa4725e 100644
--- a/src/transport/plugin_transport_http.h
+++ b/src/transport/plugin_transport_http.h
@@ -42,10 +42,10 @@
42#include <curl/curl.h> 42#include <curl/curl.h>
43 43
44 44
45#define DEBUG_HTTP GNUNET_NO 45#define DEBUG_HTTP GNUNET_EXTRA_LOGGING
46#define VERBOSE_SERVER GNUNET_NO 46#define VERBOSE_SERVER GNUNET_EXTRA_LOGGING
47#define VERBOSE_CLIENT GNUNET_NO 47#define VERBOSE_CLIENT GNUNET_EXTRA_LOGGING
48#define VERBOSE_CURL GNUNET_EXTRA_LOGGING 48#define VERBOSE_CURL GNUNET_NO
49 49
50#if BUILD_HTTPS 50#if BUILD_HTTPS
51#define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_init 51#define LIBGNUNET_PLUGIN_TRANSPORT_INIT libgnunet_plugin_transport_https_init
diff --git a/src/transport/test_transport_api_http_nat_peer1.conf b/src/transport/test_transport_api_http_nat_peer1.conf
index 85875e9b2..48707a730 100644
--- a/src/transport/test_transport_api_http_nat_peer1.conf
+++ b/src/transport/test_transport_api_http_nat_peer1.conf
@@ -34,7 +34,7 @@ PORT = 12082
34UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock 34UNIXPATH = /tmp/gnunet-p1-service-peerinfo.sock
35 35
36[transport] 36[transport]
37DEBUG = YES 37#DEBUG = YES
38PORT = 12081 38PORT = 12081
39PLUGINS = http 39PLUGINS = http
40#BINARY = .libs/gnunet-service-transport 40#BINARY = .libs/gnunet-service-transport