diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-15 09:31:18 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-07-15 09:31:18 +0000 |
commit | 27294d85406ed2c51b53112b42915141f866ff1e (patch) | |
tree | 6d0587bc8befdf4f21925fa7f261a86b875354fc /src/transport/test_transport_api_reliability.c | |
parent | 763874144cd579ce60a6a749e3a11b202d38f853 (diff) | |
download | gnunet-27294d85406ed2c51b53112b42915141f866ff1e.tar.gz gnunet-27294d85406ed2c51b53112b42915141f866ff1e.zip |
not skipping loopback devices
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 c80a1e328..a7ab6407d 100644 --- a/src/transport/test_transport_api_reliability.c +++ b/src/transport/test_transport_api_reliability.c | |||
@@ -80,6 +80,8 @@ static int is_tcp_nat; | |||
80 | 80 | ||
81 | static int is_http; | 81 | static int is_http; |
82 | 82 | ||
83 | static int is_udp; | ||
84 | |||
83 | static int connected; | 85 | static int connected; |
84 | 86 | ||
85 | static unsigned long long total_bytes; | 87 | static unsigned long long total_bytes; |
@@ -447,6 +449,11 @@ run (void *cls, | |||
447 | setup_peer (&p1, "test_transport_api_http_peer1.conf"); | 449 | setup_peer (&p1, "test_transport_api_http_peer1.conf"); |
448 | setup_peer (&p2, "test_transport_api_http_peer2.conf"); | 450 | setup_peer (&p2, "test_transport_api_http_peer2.conf"); |
449 | } | 451 | } |
452 | else if (is_udp) | ||
453 | { | ||
454 | setup_peer (&p1, "test_transport_api_udp_peer1.conf"); | ||
455 | setup_peer (&p2, "test_transport_api_udp_peer2.conf"); | ||
456 | } | ||
450 | else if (is_tcp_nat) | 457 | else if (is_tcp_nat) |
451 | { | 458 | { |
452 | setup_peer (&p1, "test_transport_api_tcp_nat_peer1.conf"); | 459 | setup_peer (&p1, "test_transport_api_tcp_nat_peer1.conf"); |
@@ -507,6 +514,10 @@ main (int argc, char *argv[]) | |||
507 | { | 514 | { |
508 | is_http = GNUNET_YES; | 515 | is_http = GNUNET_YES; |
509 | } | 516 | } |
517 | else if (strstr(argv[0], "udp") != NULL) | ||
518 | { | ||
519 | is_udp = GNUNET_YES; | ||
520 | } | ||
510 | GNUNET_log_setup ("test-transport-api-reliability", | 521 | GNUNET_log_setup ("test-transport-api-reliability", |
511 | #if VERBOSE | 522 | #if VERBOSE |
512 | "DEBUG", | 523 | "DEBUG", |