diff options
Diffstat (limited to 'src/transport/test_transport_api_reliability.c')
-rw-r--r-- | src/transport/test_transport_api_reliability.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/transport/test_transport_api_reliability.c b/src/transport/test_transport_api_reliability.c index 661792ffb..17007ab88 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c | |||
@@ -85,6 +85,8 @@ static int is_udp; | |||
85 | 85 | ||
86 | static int is_unix; | 86 | static int is_unix; |
87 | 87 | ||
88 | static int is_wlan; | ||
89 | |||
88 | static int connected; | 90 | static int connected; |
89 | 91 | ||
90 | static unsigned long long total_bytes; | 92 | static unsigned long long total_bytes; |
@@ -682,6 +684,11 @@ run (void *cls, | |||
682 | setup_peer (&p1, "test_transport_api_tcp_nat_peer1.conf"); | 684 | setup_peer (&p1, "test_transport_api_tcp_nat_peer1.conf"); |
683 | setup_peer (&p2, "test_transport_api_tcp_nat_peer2.conf"); | 685 | setup_peer (&p2, "test_transport_api_tcp_nat_peer2.conf"); |
684 | } | 686 | } |
687 | else if (is_wlan) | ||
688 | { | ||
689 | setup_peer (&p1, "test_transport_api_wlan_peer1.conf"); | ||
690 | setup_peer (&p2, "test_transport_api_wlan_peer2.conf"); | ||
691 | } | ||
685 | else | 692 | else |
686 | GNUNET_assert (0); | 693 | GNUNET_assert (0); |
687 | GNUNET_assert(p1.th != NULL); | 694 | GNUNET_assert(p1.th != NULL); |
@@ -807,6 +814,10 @@ main (int argc, char *argv[]) | |||
807 | is_unix = GNUNET_YES; | 814 | is_unix = GNUNET_YES; |
808 | GNUNET_asprintf(&test_name, "unix"); | 815 | GNUNET_asprintf(&test_name, "unix"); |
809 | } | 816 | } |
817 | else if (strstr(argv[0], "wlan") != NULL) | ||
818 | { | ||
819 | is_wlan = GNUNET_YES; | ||
820 | } | ||
810 | GNUNET_log_setup ("test-transport-api-reliability", | 821 | GNUNET_log_setup ("test-transport-api-reliability", |
811 | #if VERBOSE | 822 | #if VERBOSE |
812 | "DEBUG", | 823 | "DEBUG", |