proper test case configuration
authorNathan S. Evans <evans@in.tum.de>
Wed, 9 Jun 2010 11:25:54 +0000 (11:25 +0000)
committerNathan S. Evans <evans@in.tum.de>
Wed, 9 Jun 2010 11:25:54 +0000 (11:25 +0000)
src/transport/plugin_transport_udp.c
src/transport/test_transport_api_udp_nat_peer1.conf
src/transport/test_transport_api_udp_nat_peer2.conf

index 0eddcfe2661ef889c2c6869f34cb25af4bc8487d..51e27df620e3975bb5ffa03dd684df98ea5ee4af 100644 (file)
@@ -949,7 +949,8 @@ udp_plugin_server_read (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc
                   _("nat-server-read read: %s port %d\n"), &mybuf, port);
 #endif
 
-  /** We have received an ICMP response, ostensibly from a non-NAT'd peer
+  /**
+   * We have received an ICMP response, ostensibly from a non-NAT'd peer
    *  that wants to connect to us! Send a message to establish a connection.
    */
   if (inet_pton(AF_INET, &mybuf[0], &in_addr.sin_addr) != 1)
index f9531c3fac512e6489cc68dd5df1cbc6a5999f78..ef7316a35be32913a159572af5de48935c59f77a 100644 (file)
@@ -1,7 +1,7 @@
 [transport-udp]
 PORT = 12368
-BEHIND_NAT = NO
-ALLOW_NAT = YES
+BEHIND_NAT = YES
+ALLOW_NAT = NO
 INTERNAL_ADDRESS = 127.0.0.1
 EXTERNAL_ADDRESS = 127.0.0.1
 
index 73c55b1a41f6efdb39365b56abf536568cf5d1e6..c33a12eceb8ab060c8566902e1373402cc5d2992 100644 (file)
@@ -1,6 +1,7 @@
 [transport-udp]
 PORT = 22368
-BEHIND_NAT = YES
+BEHIND_NAT = NO
+ALLOW_NAT = YES
 EXTERNAL_ADDRESS = 127.0.0.1
 INTERNAL_ADDRESS = 127.0.0.1