aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_quota_compliance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r--src/transport/test_quota_compliance.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c
index 767ada25e..20a9b1f15 100644
--- a/src/transport/test_quota_compliance.c
+++ b/src/transport/test_quota_compliance.c
@@ -139,6 +139,7 @@ static int is_tcp_nat;
139static int is_http; 139static int is_http;
140static int is_https; 140static int is_https;
141static int is_udp; 141static int is_udp;
142static int is_unix;
142static int is_asymmetric_send_constant; 143static int is_asymmetric_send_constant;
143static int is_asymmetric_recv_constant; 144static int is_asymmetric_recv_constant;
144 145
@@ -731,6 +732,17 @@ run (void *cls,
731 setup_peer (&p1, "test_quota_compliance_udp_peer1.conf"); 732 setup_peer (&p1, "test_quota_compliance_udp_peer1.conf");
732 setup_peer (&p2, "test_quota_compliance_udp_peer2.conf"); 733 setup_peer (&p2, "test_quota_compliance_udp_peer2.conf");
733 } 734 }
735 else if (is_unix)
736 {
737 if (is_asymmetric_recv_constant == GNUNET_YES)
738 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Testing asymmetric quota compliance (receiver quota constant) for UNIX transport plugin\n");
739 else if (is_asymmetric_send_constant == GNUNET_YES)
740 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Testing asymmetric quota compliance (sender quota constant) for UNIX transport plugin\n");
741 else
742 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Testing symmetric quota compliance for UNIX transport plugin\n");
743 setup_peer (&p1, "test_quota_compliance_unix_peer1.conf");
744 setup_peer (&p2, "test_quota_compliance_unix_peer2.conf");
745 }
734 else if (is_tcp_nat) 746 else if (is_tcp_nat)
735 { 747 {
736 if (is_asymmetric_recv_constant == GNUNET_YES) 748 if (is_asymmetric_recv_constant == GNUNET_YES)
@@ -777,6 +789,10 @@ main (int argc, char *argv[])
777 { 789 {
778 is_udp = GNUNET_YES; 790 is_udp = GNUNET_YES;
779 } 791 }
792 else if (strstr(argv[0], "unix") != NULL)
793 {
794 is_unix = GNUNET_YES;
795 }
780 796
781 if (strstr(argv[0], "asymmetric_recv") != NULL) 797 if (strstr(argv[0], "asymmetric_recv") != NULL)
782 { 798 {
@@ -810,6 +826,15 @@ main (int argc, char *argv[])
810 else 826 else
811 GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","symmetric"); 827 GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","udp","symmetric");
812 } 828 }
829 else if (is_unix == GNUNET_YES)
830 {
831 if (is_asymmetric_recv_constant == GNUNET_YES)
832 GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","unix","asymmetric_recv_constant");
833 else if (is_asymmetric_send_constant == GNUNET_YES)
834 GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","unix","asymmetric_send_constant");
835 else
836 GNUNET_asprintf(&logger, "test-quota-compliance-%s-%s","unix","symmetric");
837 }
813 else if (is_http == GNUNET_YES) 838 else if (is_http == GNUNET_YES)
814 { 839 {
815 if (is_asymmetric_recv_constant == GNUNET_YES) 840 if (is_asymmetric_recv_constant == GNUNET_YES)