[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15797 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15797 - gnunet/src/transport |
Date: |
Thu, 30 Jun 2011 13:21:00 +0200 |
Author: wachs
Date: 2011-06-30 13:21:00 +0200 (Thu, 30 Jun 2011)
New Revision: 15797
Modified:
gnunet/src/transport/plugin_transport_http.c
Log:
Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c 2011-06-30 09:57:57 UTC
(rev 15796)
+++ gnunet/src/transport/plugin_transport_http.c 2011-06-30 11:21:00 UTC
(rev 15797)
@@ -2922,7 +2922,7 @@
int af;
- GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
+ GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
"tcp",
"NPMC called with %d for address `%s'\n",
add_remove,
@@ -3545,17 +3545,27 @@
struct sockaddr **addrs;
socklen_t *addrlens;
int ret;
+ ret = GNUNET_SERVICE_get_server_addresses ("transport-http",
+ env->cfg,
+ &addrs,
+ &addrlens);
- if (GNUNET_SYSERR !=
- (ret = GNUNET_SERVICE_get_server_addresses ("transport-http",
- env->cfg,
- &addrs,
- &addrlens)))
- {
-
+ if (ret != GNUNET_SYSERR)
+ {
+ int counter = 0;
+ struct sockaddr *tmp = addrs[counter];
GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
component_name,
"addresses %u\n",ret);
+ while (tmp!= NULL)
+ {
+ GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
+ component_name,
+ "address[%u] %s\n",counter, (tmp->sa_family == AF_INET) ?
"AF_INET" : "AF_INET6" );
+ counter++;
+ tmp = addrs[counter];
+ }
+
/*
plugin->nat = GNUNET_NAT_register (env->cfg,
GNUNET_YES,
@@ -3566,7 +3576,7 @@
&tcp_nat_port_map_callback,
&try_connection_reversal,
plugin);
-
+ */
while (ret > 0)
{
ret--;
@@ -3574,18 +3584,18 @@
GNUNET_free (addrs[ret]);
}
GNUNET_free_non_null (addrs);
- GNUNET_free_non_null (addrlens);*/
- }
+ GNUNET_free_non_null (addrlens);
+ }
else
- {
- plugin->nat = GNUNET_NAT_register (env->cfg,
- GNUNET_YES,
- 0,
- 0, NULL, NULL,
- NULL,
- &try_connection_reversal,
- plugin);
- }
+ {
+ plugin->nat = GNUNET_NAT_register (env->cfg,
+ GNUNET_YES,
+ 0,
+ 0, NULL, NULL,
+ NULL,
+ &try_connection_reversal,
+ plugin);
+ }
plugin->peers = GNUNET_CONTAINER_multihashmap_create (10);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15797 - gnunet/src/transport,
gnunet <=