diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-12-18 14:29:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-12-18 14:29:56 +0000 |
commit | bcc375bf6c191efd5243ff21e274d261354d99a4 (patch) | |
tree | e725b75240af320db072818182c972463e2f09ba /src/dv/dv_api.c | |
parent | 920f6c8c466a11852d1bd7298e3f76deda69b6f3 (diff) | |
download | gnunet-bcc375bf6c191efd5243ff21e274d261354d99a4.tar.gz gnunet-bcc375bf6c191efd5243ff21e274d261354d99a4.zip |
-learn routes from forwarding/receiving as well
Diffstat (limited to 'src/dv/dv_api.c')
-rw-r--r-- | src/dv/dv_api.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dv/dv_api.c b/src/dv/dv_api.c index 4cd072eb7..5932c7459 100644 --- a/src/dv/dv_api.c +++ b/src/dv/dv_api.c | |||
@@ -200,7 +200,7 @@ reconnect (struct GNUNET_DV_ServiceHandle *sh); | |||
200 | /** | 200 | /** |
201 | * Gives a message from our queue to the DV service. | 201 | * Gives a message from our queue to the DV service. |
202 | * | 202 | * |
203 | * @param cls handle to the dv service (struct GNUNET_DV_ServiceHandle) | 203 | * @param cls handle to the dv service (`struct GNUNET_DV_ServiceHandle`) |
204 | * @param size how many bytes can we send | 204 | * @param size how many bytes can we send |
205 | * @param buf where to copy the message to send | 205 | * @param buf where to copy the message to send |
206 | * @return how many bytes we copied to @a buf | 206 | * @return how many bytes we copied to @a buf |
@@ -228,6 +228,10 @@ transmit_pending (void *cls, size_t size, void *buf) | |||
228 | sh->th_tail, | 228 | sh->th_tail, |
229 | th); | 229 | th); |
230 | memcpy (&cbuf[ret], th->msg, tsize); | 230 | memcpy (&cbuf[ret], th->msg, tsize); |
231 | LOG (GNUNET_ERROR_TYPE_DEBUG, | ||
232 | "Passing %u bytes of type %u to DV service\n", | ||
233 | tsize, | ||
234 | ntohs (th->msg->type)); | ||
231 | th->msg = NULL; | 235 | th->msg = NULL; |
232 | ret += tsize; | 236 | ret += tsize; |
233 | if (NULL != th->cb) | 237 | if (NULL != th->cb) |