From a4915ad6b39aa8a67bee611106edbb505975030d Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 19 May 2011 09:26:08 +0000 Subject: changes to testing --- src/testing/test_testing_peergroup_data.conf | 2 +- src/testing/testing_group.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) (limited to 'src/testing') diff --git a/src/testing/test_testing_peergroup_data.conf b/src/testing/test_testing_peergroup_data.conf index d8d3de7e4..2e6b6db6c 100644 --- a/src/testing/test_testing_peergroup_data.conf +++ b/src/testing/test_testing_peergroup_data.conf @@ -8,6 +8,7 @@ PORT = 2564 [transport] PORT = 2565 PLUGINS = tcp +#DEBUG = YES #PREFIX = xterm -e xterm -T transport -e gdb -x cmd --args #PREFIX = valgrind --tool=memcheck --log-file=logs%p @@ -20,7 +21,6 @@ PORT = 2567 [transport-tcp] PORT = 2568 -USE_LOCALADDR = YES [peerinfo] PORT = 2569 diff --git a/src/testing/testing_group.c b/src/testing/testing_group.c index 66bcae842..b42ce8cc5 100644 --- a/src/testing/testing_group.c +++ b/src/testing/testing_group.c @@ -1410,6 +1410,10 @@ make_config(const struct GNUNET_CONFIGURATION_Handle *cfg, uint32_t off, GNUNET_CONFIGURATION_set_value_string (uc.ret, "statistics", "UNIXPATH", ""); + GNUNET_CONFIGURATION_set_value_string (uc.ret, "transport-tcp", "USE_LOCALADDR", + "YES"); + GNUNET_CONFIGURATION_set_value_string (uc.ret, "transport-udp", "USE_LOCALADDR", + "YES"); GNUNET_free_non_null (control_host); GNUNET_free (allowed_hosts); } @@ -1423,6 +1427,10 @@ make_config(const struct GNUNET_CONFIGURATION_Handle *cfg, uint32_t off, hostname); GNUNET_CONFIGURATION_set_value_string (uc.ret, "transport-tcp", "BINDTO", hostname); + GNUNET_CONFIGURATION_set_value_string (uc.ret, "transport-tcp", "USE_LOCALADDR", + "YES"); + GNUNET_CONFIGURATION_set_value_string (uc.ret, "transport-udp", "USE_LOCALADDR", + "YES"); GNUNET_CONFIGURATION_set_value_string (uc.ret, "arm", "ACCEPT_FROM", allowed_hosts); GNUNET_free (allowed_hosts); @@ -1433,6 +1441,10 @@ make_config(const struct GNUNET_CONFIGURATION_Handle *cfg, uint32_t off, "127.0.0.1"); GNUNET_CONFIGURATION_set_value_string (uc.ret, "transport-udp", "BINDTO", "127.0.0.1"); + GNUNET_CONFIGURATION_set_value_string (uc.ret, "transport-tcp", "USE_LOCALADDR", + "YES"); + GNUNET_CONFIGURATION_set_value_string (uc.ret, "transport-udp", "USE_LOCALADDR", + "YES"); } *port = (uint16_t) uc.nport; -- cgit v1.2.3