diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-06-09 11:25:54 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-06-09 11:25:54 +0000 |
commit | 986143688bdfb45b7536838d795f3445bd6d4881 (patch) | |
tree | d816a2ae4ef944ba3b82adc623de327992115695 | |
parent | 457cd711331dd77e9f012c147dee7ce2922bf9d5 (diff) | |
download | gnunet-986143688bdfb45b7536838d795f3445bd6d4881.tar.gz gnunet-986143688bdfb45b7536838d795f3445bd6d4881.zip |
proper test case configuration
-rw-r--r-- | src/transport/plugin_transport_udp.c | 3 | ||||
-rw-r--r-- | src/transport/test_transport_api_udp_nat_peer1.conf | 4 | ||||
-rw-r--r-- | 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 | |||
949 | _("nat-server-read read: %s port %d\n"), &mybuf, port); | 949 | _("nat-server-read read: %s port %d\n"), &mybuf, port); |
950 | #endif | 950 | #endif |
951 | 951 | ||
952 | /** We have received an ICMP response, ostensibly from a non-NAT'd peer | 952 | /** |
953 | * We have received an ICMP response, ostensibly from a non-NAT'd peer | ||
953 | * that wants to connect to us! Send a message to establish a connection. | 954 | * that wants to connect to us! Send a message to establish a connection. |
954 | */ | 955 | */ |
955 | if (inet_pton(AF_INET, &mybuf[0], &in_addr.sin_addr) != 1) | 956 | 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 @@ | |||
1 | [transport-udp] | 1 | [transport-udp] |
2 | PORT = 12368 | 2 | PORT = 12368 |
3 | BEHIND_NAT = NO | 3 | BEHIND_NAT = YES |
4 | ALLOW_NAT = YES | 4 | ALLOW_NAT = NO |
5 | INTERNAL_ADDRESS = 127.0.0.1 | 5 | INTERNAL_ADDRESS = 127.0.0.1 |
6 | EXTERNAL_ADDRESS = 127.0.0.1 | 6 | EXTERNAL_ADDRESS = 127.0.0.1 |
7 | 7 | ||
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 @@ | |||
1 | [transport-udp] | 1 | [transport-udp] |
2 | PORT = 22368 | 2 | PORT = 22368 |
3 | BEHIND_NAT = YES | 3 | BEHIND_NAT = NO |
4 | ALLOW_NAT = YES | ||
4 | EXTERNAL_ADDRESS = 127.0.0.1 | 5 | EXTERNAL_ADDRESS = 127.0.0.1 |
5 | INTERNAL_ADDRESS = 127.0.0.1 | 6 | INTERNAL_ADDRESS = 127.0.0.1 |
6 | 7 | ||