From 986143688bdfb45b7536838d795f3445bd6d4881 Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Wed, 9 Jun 2010 11:25:54 +0000 Subject: [PATCH] proper test case configuration --- src/transport/plugin_transport_udp.c | 3 ++- src/transport/test_transport_api_udp_nat_peer1.conf | 4 ++-- src/transport/test_transport_api_udp_nat_peer2.conf | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 0eddcfe26..51e27df62 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -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) diff --git a/src/transport/test_transport_api_udp_nat_peer1.conf b/src/transport/test_transport_api_udp_nat_peer1.conf index f9531c3fa..ef7316a35 100644 --- a/src/transport/test_transport_api_udp_nat_peer1.conf +++ b/src/transport/test_transport_api_udp_nat_peer1.conf @@ -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 diff --git a/src/transport/test_transport_api_udp_nat_peer2.conf b/src/transport/test_transport_api_udp_nat_peer2.conf index 73c55b1a4..c33a12ece 100644 --- a/src/transport/test_transport_api_udp_nat_peer2.conf +++ b/src/transport/test_transport_api_udp_nat_peer2.conf @@ -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 -- 2.25.1