changes to testing
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 19 May 2011 09:26:08 +0000 (09:26 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 19 May 2011 09:26:08 +0000 (09:26 +0000)
src/testing/test_testing_peergroup_data.conf
src/testing/testing_group.c

index d8d3de7e48c72b70589df3b1088fb7dd9de8d2b2..2e6b6db6c8355646060aaee653b31d6ece9d225b 100644 (file)
@@ -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
index 66bcae842b99bfd9cfd6dc5baeec9bde8b089a08..b42ce8cc58c65815a2b6b2f07e6b28e8c5784b69 100644 (file)
@@ -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;