aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-02-05 00:53:22 +0000
committerChristian Grothoff <christian@grothoff.org>2015-02-05 00:53:22 +0000
commit15dd8e6cc1199d611d804853e134882bf13b234a (patch)
tree7cc90886eabe8d0ffa397a319e12a87042d0ba28 /src/ats/gnunet-service-ats.c
parentbf6a2c9deeff7a3b384eb029d8267d6099066df3 (diff)
downloadgnunet-15dd8e6cc1199d611d804853e134882bf13b234a.tar.gz
gnunet-15dd8e6cc1199d611d804853e134882bf13b234a.zip
Various changes:
- removed "in_use" from being passed to ATS, no longer needed as we tell ATS when we cannot follow a suggestion by removing the address; simplifies the code a lot - better handling of state machine, fallback to primary session if address switch to new session timed out - nicer logging - more comments - new testcase failures, because of #3652, #3651 and #3650 (or more that i missed).
Diffstat (limited to 'src/ats/gnunet-service-ats.c')
-rw-r--r--src/ats/gnunet-service-ats.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ats/gnunet-service-ats.c b/src/ats/gnunet-service-ats.c
index 83fa42b35..944db77f6 100644
--- a/src/ats/gnunet-service-ats.c
+++ b/src/ats/gnunet-service-ats.c
@@ -165,9 +165,6 @@ run (void *cls,
165 GNUNET_MESSAGE_TYPE_ATS_ADDRESS_ADD, 0}, 165 GNUNET_MESSAGE_TYPE_ATS_ADDRESS_ADD, 0},
166 {&GAS_handle_address_update, NULL, 166 {&GAS_handle_address_update, NULL,
167 GNUNET_MESSAGE_TYPE_ATS_ADDRESS_UPDATE, 0}, 167 GNUNET_MESSAGE_TYPE_ATS_ADDRESS_UPDATE, 0},
168 {&GAS_handle_address_in_use, NULL,
169 GNUNET_MESSAGE_TYPE_ATS_ADDRESS_IN_USE,
170 sizeof (struct AddressUseMessage) },
171 {&GAS_handle_address_destroyed, NULL, 168 {&GAS_handle_address_destroyed, NULL,
172 GNUNET_MESSAGE_TYPE_ATS_ADDRESS_DESTROYED, 169 GNUNET_MESSAGE_TYPE_ATS_ADDRESS_DESTROYED,
173 sizeof (struct AddressDestroyedMessage) }, 170 sizeof (struct AddressDestroyedMessage) },
@@ -178,9 +175,6 @@ run (void *cls,
178 GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_CHANGE, 0}, 175 GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_CHANGE, 0},
179 {&GAS_handle_preference_feedback, NULL, 176 {&GAS_handle_preference_feedback, NULL,
180 GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_FEEDBACK, 0}, 177 GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_FEEDBACK, 0},
181 {&GAS_handle_reset_backoff, NULL,
182 GNUNET_MESSAGE_TYPE_ATS_RESET_BACKOFF,
183 sizeof (struct ResetBackoffMessage)},
184 {NULL, NULL, 0, 0} 178 {NULL, NULL, 0, 0}
185 }; 179 };
186 GSA_server = server; 180 GSA_server = server;