diff options
Diffstat (limited to 'src/ats/gnunet-service-ats_scheduling.c')
-rw-r--r-- | src/ats/gnunet-service-ats_scheduling.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/ats/gnunet-service-ats_scheduling.c b/src/ats/gnunet-service-ats_scheduling.c index 6b6b6c24f..9d7562e7b 100644 --- a/src/ats/gnunet-service-ats_scheduling.c +++ b/src/ats/gnunet-service-ats_scheduling.c | |||
@@ -120,30 +120,6 @@ GAS_scheduling_transmit_address_suggestion (const struct GNUNET_PeerIdentity *pe | |||
120 | 120 | ||
121 | 121 | ||
122 | /** | 122 | /** |
123 | * Handle 'reset backoff' messages from clients. | ||
124 | * | ||
125 | * @param cls unused, NULL | ||
126 | * @param client client that sent the request | ||
127 | * @param message the request message | ||
128 | */ | ||
129 | void | ||
130 | GAS_handle_reset_backoff (void *cls, | ||
131 | struct GNUNET_SERVER_Client *client, | ||
132 | const struct GNUNET_MessageHeader *message) | ||
133 | { | ||
134 | const struct ResetBackoffMessage *msg = | ||
135 | (const struct ResetBackoffMessage *) message; | ||
136 | |||
137 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
138 | "Received `%s' message\n", | ||
139 | "RESET_BACKOFF"); | ||
140 | GNUNET_break (0 == ntohl (msg->reserved)); | ||
141 | GAS_addresses_handle_backoff_reset (&msg->peer); | ||
142 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | ||
143 | } | ||
144 | |||
145 | |||
146 | /** | ||
147 | * Handle 'address add' messages from clients. | 123 | * Handle 'address add' messages from clients. |
148 | * | 124 | * |
149 | * @param cls unused, NULL | 125 | * @param cls unused, NULL |
@@ -262,35 +238,6 @@ GAS_handle_address_update (void *cls, | |||
262 | 238 | ||
263 | 239 | ||
264 | /** | 240 | /** |
265 | * Handle 'address in use' messages from clients. | ||
266 | * | ||
267 | * @param cls unused, NULL | ||
268 | * @param client client that sent the request | ||
269 | * @param message the request message | ||
270 | */ | ||
271 | void | ||
272 | GAS_handle_address_in_use (void *cls, | ||
273 | struct GNUNET_SERVER_Client *client, | ||
274 | const struct GNUNET_MessageHeader *message) | ||
275 | { | ||
276 | const struct AddressUseMessage *m; | ||
277 | int res; | ||
278 | |||
279 | m = (const struct AddressUseMessage *) message; | ||
280 | res = GAS_addresses_in_use (&m->peer, | ||
281 | ntohl (m->session_id), | ||
282 | ntohl (m->in_use)); | ||
283 | if (GNUNET_OK != res) | ||
284 | { | ||
285 | GNUNET_break (0); | ||
286 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | ||
287 | return; | ||
288 | } | ||
289 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | ||
290 | } | ||
291 | |||
292 | |||
293 | /** | ||
294 | * Handle 'address destroyed' messages from clients. | 241 | * Handle 'address destroyed' messages from clients. |
295 | * | 242 | * |
296 | * @param cls unused, NULL | 243 | * @param cls unused, NULL |