diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-06 14:25:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-06 14:25:50 +0000 |
commit | 936db3ddce41de5f16e931d1a995c0be0135ac73 (patch) | |
tree | 3fd5cdf164b49a0fe5a567c60d982fc3d23257cf /src/ats/gnunet-service-ats_plugins.c | |
parent | 34206679446e053b674a4fbdaabdd8c463ad70e2 (diff) | |
download | gnunet-936db3ddce41de5f16e931d1a995c0be0135ac73.tar.gz gnunet-936db3ddce41de5f16e931d1a995c0be0135ac73.zip |
test ATS tests to pass again
Diffstat (limited to 'src/ats/gnunet-service-ats_plugins.c')
-rw-r--r-- | src/ats/gnunet-service-ats_plugins.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ats/gnunet-service-ats_plugins.c b/src/ats/gnunet-service-ats_plugins.c index 6c15bc27c..5e3f9c8d4 100644 --- a/src/ats/gnunet-service-ats_plugins.c +++ b/src/ats/gnunet-service-ats_plugins.c | |||
@@ -26,6 +26,7 @@ | |||
26 | */ | 26 | */ |
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #include "gnunet_ats_plugin.h" | 28 | #include "gnunet_ats_plugin.h" |
29 | #include "gnunet-service-ats_connectivity.h" | ||
29 | #include "gnunet-service-ats_performance.h" | 30 | #include "gnunet-service-ats_performance.h" |
30 | #include "gnunet-service-ats_preferences.h" | 31 | #include "gnunet-service-ats_preferences.h" |
31 | #include "gnunet-service-ats_plugins.h" | 32 | #include "gnunet-service-ats_plugins.h" |
@@ -272,7 +273,9 @@ bandwidth_changed_cb (void *cls, | |||
272 | */ | 273 | */ |
273 | static unsigned int | 274 | static unsigned int |
274 | load_quotas (const struct GNUNET_CONFIGURATION_Handle *cfg, | 275 | load_quotas (const struct GNUNET_CONFIGURATION_Handle *cfg, |
275 | unsigned long long *out_dest, unsigned long long *in_dest, int dest_length) | 276 | unsigned long long *out_dest, |
277 | unsigned long long *in_dest, | ||
278 | int dest_length) | ||
276 | { | 279 | { |
277 | char * entry_in = NULL; | 280 | char * entry_in = NULL; |
278 | char * entry_out = NULL; | 281 | char * entry_out = NULL; |
@@ -529,6 +532,7 @@ GAS_plugin_new_address (struct ATS_Address *new_address, | |||
529 | atsi, | 532 | atsi, |
530 | atsi_count); | 533 | atsi_count); |
531 | sf->s_bulk_stop (sf->cls); | 534 | sf->s_bulk_stop (sf->cls); |
535 | // if (GAS_connectivity_has_peer (&new_address->peer)) GAS_plugin_request_connect_start (&new_address->peer); | ||
532 | } | 536 | } |
533 | 537 | ||
534 | 538 | ||
@@ -612,15 +616,10 @@ GAS_plugin_request_connect_start (const struct GNUNET_PeerIdentity *pid) | |||
612 | "Suggesting address %p for peer `%s'\n", | 616 | "Suggesting address %p for peer `%s'\n", |
613 | aa, | 617 | aa, |
614 | GNUNET_i2s (pid)); | 618 | GNUNET_i2s (pid)); |
615 | |||
616 | GAS_scheduling_transmit_address_suggestion (pid, | 619 | GAS_scheduling_transmit_address_suggestion (pid, |
617 | aa->session_id, | 620 | aa->session_id, |
618 | GNUNET_BANDWIDTH_value_init (aa->assigned_bw_out), | 621 | GNUNET_BANDWIDTH_value_init (aa->assigned_bw_out), |
619 | GNUNET_BANDWIDTH_value_init (aa->assigned_bw_in)); | 622 | GNUNET_BANDWIDTH_value_init (aa->assigned_bw_in)); |
620 | |||
621 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, | ||
622 | "Address %p ready for suggestion\n", | ||
623 | aa); | ||
624 | } | 623 | } |
625 | 624 | ||
626 | 625 | ||