aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_quota_compliance.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-12-21 13:13:42 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-12-21 13:13:42 +0000
commitc3ad0b15397c8bc4386220314ba86dee08dd4b99 (patch)
treeca4423e85a00ff14d365c0feee738abed7d7e416 /src/transport/test_quota_compliance.c
parentbc0feb33d3e4d1f29be710b40216ff4a3b72a8b2 (diff)
downloadgnunet-c3ad0b15397c8bc4386220314ba86dee08dd4b99.tar.gz
gnunet-c3ad0b15397c8bc4386220314ba86dee08dd4b99.zip
added fix
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r--src/transport/test_quota_compliance.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c
index f48f15878..5b070f48b 100644
--- a/src/transport/test_quota_compliance.c
+++ b/src/transport/test_quota_compliance.c
@@ -361,7 +361,7 @@ measurement_end (void *cls,
361 const struct GNUNET_SCHEDULER_TaskContext *tc) 361 const struct GNUNET_SCHEDULER_TaskContext *tc)
362{ 362{
363 static int strike_counter; 363 static int strike_counter;
364 static int failed_measurement_counter; 364 static int failed_measurement_counter = 1;
365 unsigned long long quota_allowed = 0; 365 unsigned long long quota_allowed = 0;
366 int delta = 0; 366 int delta = 0;
367 367
@@ -623,6 +623,11 @@ setup_peer (struct PeerContext *p, const char *cfgname)
623 GNUNET_assert (p->th != NULL); 623 GNUNET_assert (p->th != NULL);
624} 624}
625 625
626static size_t
627notify_ready_connect (void *cls, size_t size, void *buf)
628{
629 return 0;
630}
626 631
627static void 632static void
628exchange_hello_last (void *cls, 633exchange_hello_last (void *cls,
@@ -638,6 +643,14 @@ exchange_hello_last (void *cls,
638 GNUNET_assert (GNUNET_OK == 643 GNUNET_assert (GNUNET_OK ==
639 GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *) 644 GNUNET_HELLO_get_id ((const struct GNUNET_HELLO_Message *)
640 message, &me->id)); 645 message, &me->id));
646
647 GNUNET_assert(NULL != (transmit_handle = GNUNET_TRANSPORT_notify_transmit_ready (p2.th,
648 &p1.id,
649 sizeof (struct GNUNET_MessageHeader), 0,
650 TIMEOUT,
651 &notify_ready_connect,
652 NULL)));
653
641 /* both HELLOs exchanged, get ready to test transmission! */ 654 /* both HELLOs exchanged, get ready to test transmission! */
642} 655}
643 656