aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/gnunet_protocols.h5
-rw-r--r--src/mesh/gnunet-service-mesh.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index d61192710..d65a91911 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -825,6 +825,11 @@ extern "C"
825#define GNUNET_MESSAGE_TYPE_MESH_PATH_ACK 263 825#define GNUNET_MESSAGE_TYPE_MESH_PATH_ACK 263
826 826
827/** 827/**
828 * Avoid path timeouts
829 */
830#define GNUNET_MESSAGE_TYPE_MESH_PATH_KEEPALIVE 264
831
832/**
828 * We need flow control 833 * We need flow control
829 */ 834 */
830#define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY 270 835#define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY 270
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index 8ee55c845..486684507 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -2182,9 +2182,9 @@ send_p2p_tunnel_destroy (void *cls, size_t size, void *buf)
2182 * @param message message 2182 * @param message message
2183 * @param peer peer identity this notification is about 2183 * @param peer peer identity this notification is about
2184 * @param atsi performance data 2184 * @param atsi performance data
2185 *
2185 * @return GNUNET_OK to keep the connection open, 2186 * @return GNUNET_OK to keep the connection open,
2186 * GNUNET_SYSERR to close it (signal serious error) 2187 * GNUNET_SYSERR to close it (signal serious error)
2187 *
2188 */ 2188 */
2189static int 2189static int
2190handle_mesh_path_create (void *cls, const struct GNUNET_PeerIdentity *peer, 2190handle_mesh_path_create (void *cls, const struct GNUNET_PeerIdentity *peer,
@@ -2772,7 +2772,7 @@ path_refresh (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
2772 msg->tid = htonl(t->id.tid); 2772 msg->tid = htonl(t->id.tid);
2773 payload = (struct GNUNET_MessageHeader *) &msg[1]; 2773 payload = (struct GNUNET_MessageHeader *) &msg[1];
2774 payload->size = htons (sizeof(struct GNUNET_MessageHeader)); 2774 payload->size = htons (sizeof(struct GNUNET_MessageHeader));
2775 payload->type = htons (GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE); 2775 payload->type = htons (GNUNET_MESSAGE_TYPE_MESH_PATH_KEEPALIVE);
2776 tunnel_send_multicast (t, &msg->header); 2776 tunnel_send_multicast (t, &msg->header);
2777 2777
2778 t->path_refresh_task = 2778 t->path_refresh_task =