diff options
author | David Brodski <david@brodski.eu> | 2011-05-23 23:14:47 +0000 |
---|---|---|
committer | David Brodski <david@brodski.eu> | 2011-05-23 23:14:47 +0000 |
commit | 5cdc9eb4091dfbfd1d65c4aaf1e3dfdd4b5b6316 (patch) | |
tree | a610fd026af2cde16c0140ca70be37f5913d6a43 /src/transport/test_transport_api_unreliability.c | |
parent | 57e5f310b699c0b91dabac940e04ef4b152ee2a3 (diff) | |
download | gnunet-5cdc9eb4091dfbfd1d65c4aaf1e3dfdd4b5b6316.tar.gz gnunet-5cdc9eb4091dfbfd1d65c4aaf1e3dfdd4b5b6316.zip |
Some bugfixes, udp packets can now be send over wlan, unrel test added, clean up
Diffstat (limited to 'src/transport/test_transport_api_unreliability.c')
-rw-r--r-- | src/transport/test_transport_api_unreliability.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c index b8a766c19..929e88b1c 100644 --- a/src/transport/test_transport_api_unreliability.c +++ b/src/transport/test_transport_api_unreliability.c | |||
@@ -88,6 +88,8 @@ static int is_udp; | |||
88 | 88 | ||
89 | static int is_unix; | 89 | static int is_unix; |
90 | 90 | ||
91 | static int is_wlan; | ||
92 | |||
91 | static int connected; | 93 | static int connected; |
92 | 94 | ||
93 | static unsigned long long total_bytes; | 95 | static unsigned long long total_bytes; |
@@ -779,6 +781,11 @@ run (void *cls, | |||
779 | setup_peer (&p1, "test_transport_api_tcp_nat_peer1.conf"); | 781 | setup_peer (&p1, "test_transport_api_tcp_nat_peer1.conf"); |
780 | setup_peer (&p2, "test_transport_api_tcp_nat_peer2.conf"); | 782 | setup_peer (&p2, "test_transport_api_tcp_nat_peer2.conf"); |
781 | } | 783 | } |
784 | else if (is_wlan) | ||
785 | { | ||
786 | setup_peer (&p1, "test_transport_api_wlan_peer1.conf"); | ||
787 | setup_peer (&p2, "test_transport_api_wlan_peer2.conf"); | ||
788 | } | ||
782 | else | 789 | else |
783 | GNUNET_assert (0); | 790 | GNUNET_assert (0); |
784 | GNUNET_assert(p1.th != NULL); | 791 | GNUNET_assert(p1.th != NULL); |
@@ -904,6 +911,10 @@ main (int argc, char *argv[]) | |||
904 | is_unix = GNUNET_YES; | 911 | is_unix = GNUNET_YES; |
905 | GNUNET_asprintf(&test_name, "unix"); | 912 | GNUNET_asprintf(&test_name, "unix"); |
906 | } | 913 | } |
914 | else if (strstr(argv[0], "wlan") != NULL) | ||
915 | { | ||
916 | is_wlan = GNUNET_YES; | ||
917 | } | ||
907 | GNUNET_log_setup ("test-transport-api-reliability", | 918 | GNUNET_log_setup ("test-transport-api-reliability", |
908 | #if VERBOSE | 919 | #if VERBOSE |
909 | "DEBUG", | 920 | "DEBUG", |