aboutsummaryrefslogtreecommitdiff
path: root/src/nat/nat_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nat/nat_test.c')
-rw-r--r--src/nat/nat_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nat/nat_test.c b/src/nat/nat_test.c
index b6e2a744c..92f72e4be 100644
--- a/src/nat/nat_test.c
+++ b/src/nat/nat_test.c
@@ -30,6 +30,8 @@
30 30
31#define LOG(kind,...) GNUNET_log_from (kind, "nat", __VA_ARGS__) 31#define LOG(kind,...) GNUNET_log_from (kind, "nat", __VA_ARGS__)
32 32
33#define NAT_SERVER_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
34
33/** 35/**
34 * Entry we keep for each incoming connection. 36 * Entry we keep for each incoming connection.
35 */ 37 */
@@ -353,7 +355,7 @@ addr_cb (void *cls, int add_remove, const struct sockaddr *addr,
353 GNUNET_CONTAINER_DLL_insert (h->ca_head, h->ca_tail, ca); 355 GNUNET_CONTAINER_DLL_insert (h->ca_head, h->ca_tail, ca);
354 GNUNET_break (GNUNET_OK == 356 GNUNET_break (GNUNET_OK ==
355 GNUNET_CLIENT_transmit_and_get_response (client, &msg.header, 357 GNUNET_CLIENT_transmit_and_get_response (client, &msg.header,
356 GNUNET_TIME_UNIT_SECONDS, 358 NAT_SERVER_TIMEOUT,
357 GNUNET_YES, NULL, 359 GNUNET_YES, NULL,
358 NULL)); 360 NULL));
359} 361}