diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-18 13:53:16 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-18 13:53:16 +0000 |
commit | 288b020f05fd7c6f48a745f10f0867886bd0ca0a (patch) | |
tree | c3a799797fd5b9adfe93bc1701106c59e06b1a6a /src/cadet/gnunet-service-cadet_dht.c | |
parent | 3afa50d4dc9a7d0253c3bb602202822cabb26b74 (diff) | |
download | gnunet-288b020f05fd7c6f48a745f10f0867886bd0ca0a.tar.gz gnunet-288b020f05fd7c6f48a745f10f0867886bd0ca0a.zip |
-track hello offer handle while it is active
Diffstat (limited to 'src/cadet/gnunet-service-cadet_dht.c')
-rw-r--r-- | src/cadet/gnunet-service-cadet_dht.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/cadet/gnunet-service-cadet_dht.c b/src/cadet/gnunet-service-cadet_dht.c index 2b9fdb0a3..fadf45e13 100644 --- a/src/cadet/gnunet-service-cadet_dht.c +++ b/src/cadet/gnunet-service-cadet_dht.c | |||
@@ -154,9 +154,9 @@ path_build_from_dht (const struct GNUNET_PeerIdentity *get_path, | |||
154 | * @param exp when will this value expire | 154 | * @param exp when will this value expire |
155 | * @param key key of the result | 155 | * @param key key of the result |
156 | * @param get_path path of the get request | 156 | * @param get_path path of the get request |
157 | * @param get_path_length lenght of get_path | 157 | * @param get_path_length lenght of @a get_path |
158 | * @param put_path path of the put request | 158 | * @param put_path path of the put request |
159 | * @param put_path_length length of the put_path | 159 | * @param put_path_length length of the @a put_path |
160 | * @param type type of the result | 160 | * @param type type of the result |
161 | * @param size number of bytes in data | 161 | * @param size number of bytes in data |
162 | * @param data pointer to the result data | 162 | * @param data pointer to the result data |
@@ -185,11 +185,15 @@ dht_get_id_handler (void *cls, struct GNUNET_TIME_Absolute exp, | |||
185 | } | 185 | } |
186 | 186 | ||
187 | s = path_2s (p); | 187 | s = path_2s (p); |
188 | LOG (GNUNET_ERROR_TYPE_INFO, "Got path from DHT: %s\n", s); | 188 | LOG (GNUNET_ERROR_TYPE_INFO, |
189 | "Got path from DHT: %s\n", | ||
190 | s); | ||
189 | GNUNET_free_non_null (s); | 191 | GNUNET_free_non_null (s); |
190 | 192 | ||
191 | peer = GCP_get_short (p->peers[p->length - 1], GNUNET_YES); | 193 | peer = GCP_get_short (p->peers[p->length - 1], GNUNET_YES); |
192 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Got HELLO for %s\n", GCP_2s (peer)); | 194 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
195 | "Got HELLO for %s\n", | ||
196 | GCP_2s (peer)); | ||
193 | h->callback (h->cls, p); | 197 | h->callback (h->cls, p); |
194 | path_destroy (p); | 198 | path_destroy (p); |
195 | hello = (struct GNUNET_HELLO_Message *) data; | 199 | hello = (struct GNUNET_HELLO_Message *) data; |