#include "gnunet_protocols.h"
#include "nat.h"
-#define DEBUG_NAT GNUNET_NO
/**
* Our server.
#include "gnunet_util_lib.h"
#include "gnunet_resolver_service.h"
#include "gnunet_nat_lib.h"
-
-#define DEBUG_NAT GNUNET_NO
+#include "nat.h"
/**
* How often do we scan for changes in our IP address from our local
#define NAT_H
#include "gnunet_util_lib.h"
+#define DEBUG_NAT GNUNET_NO
+
/**
* Request to test NAT traversal.
*/
#include "gnunet_nat_lib.h"
#include "nat.h"
-#define DEBUG_NAT GNUNET_NO
/**
* How long do we give upnpc to create a mapping?
#if DEBUG_NAT
else
GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
- "nat" "Received data mismatches expected value\n");
+ "nat",
+ "Received data mismatches expected value\n");
#endif
}
#if DEBUG_NAT
{
/* maybe refused / unsupported address, try next */
GNUNET_log_strerror (GNUNET_ERROR_TYPE_INFO, "connect");
+#if 0
+ GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+ _("Failed to connect to `%s' (%p)\n"),
+ GNUNET_a2s (ap->addr, ap->addrlen), h);
+#endif
GNUNET_break (GNUNET_OK == GNUNET_NETWORK_socket_close (ap->sock));
GNUNET_free (ap);
return;