aboutsummaryrefslogtreecommitdiff
path: root/src/ats/gnunet-service-ats_scheduling.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-05-22 09:57:18 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-05-22 09:57:18 +0000
commit58243199da1c8959f3a86d5ec848575f97ca6e94 (patch)
tree0b1accdbb672fe5c36af033f59a955c910e41a86 /src/ats/gnunet-service-ats_scheduling.c
parent17a97ae662262369a0610e5a9a52f49d4ef03e91 (diff)
downloadgnunet-58243199da1c8959f3a86d5ec848575f97ca6e94.tar.gz
gnunet-58243199da1c8959f3a86d5ec848575f97ca6e94.zip
- suggest backoff reset
Diffstat (limited to 'src/ats/gnunet-service-ats_scheduling.c')
-rw-r--r--src/ats/gnunet-service-ats_scheduling.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats_scheduling.c b/src/ats/gnunet-service-ats_scheduling.c
index 5d03ff007..0b66ac566 100644
--- a/src/ats/gnunet-service-ats_scheduling.c
+++ b/src/ats/gnunet-service-ats_scheduling.c
@@ -198,6 +198,30 @@ GAS_handle_request_address_cancel (void *cls,
198 GNUNET_SERVER_receive_done (client, GNUNET_OK); 198 GNUNET_SERVER_receive_done (client, GNUNET_OK);
199} 199}
200 200
201/**
202 * Handle 'reset backoff' messages from clients.
203 *
204 * @param cls unused, NULL
205 * @param client client that sent the request
206 * @param message the request message
207 */
208void
209GAS_handle_reset_backoff (void *cls,
210 struct GNUNET_SERVER_Client *client,
211 const struct GNUNET_MessageHeader *message)
212{
213 const struct ResetBackoffMessage *msg =
214 (const struct ResetBackoffMessage *) message;
215
216 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received `%s' message\n",
217 "RESET_BACKOFF");
218 GNUNET_STATISTICS_update (GSA_stats, "# backoff reset requests received", 1,
219 GNUNET_NO);
220 GNUNET_break (0 == ntohl (msg->reserved));
221 GAS_addresses_handle_backoff_reset (&msg->peer);
222 GNUNET_SERVER_receive_done (client, GNUNET_OK);
223}
224
201 225
202/** 226/**
203 * Handle 'address update' messages from clients. 227 * Handle 'address update' messages from clients.