[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17579 - in gnunet/src: include mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17579 - in gnunet/src: include mesh |
Date: |
Tue, 18 Oct 2011 17:40:58 +0200 |
Author: bartpolot
Date: 2011-10-18 17:40:57 +0200 (Tue, 18 Oct 2011)
New Revision: 17579
Modified:
gnunet/src/include/gnunet_protocols.h
gnunet/src/mesh/gnunet-service-mesh.c
Log:
Change keepalive packets to explicit message type number
Modified: gnunet/src/include/gnunet_protocols.h
===================================================================
--- gnunet/src/include/gnunet_protocols.h 2011-10-18 15:40:23 UTC (rev
17578)
+++ gnunet/src/include/gnunet_protocols.h 2011-10-18 15:40:57 UTC (rev
17579)
@@ -825,6 +825,11 @@
#define GNUNET_MESSAGE_TYPE_MESH_PATH_ACK 263
/**
+ * Avoid path timeouts
+ */
+#define GNUNET_MESSAGE_TYPE_MESH_PATH_KEEPALIVE 264
+
+/**
* We need flow control
*/
#define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY 270
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2011-10-18 15:40:23 UTC (rev
17578)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2011-10-18 15:40:57 UTC (rev
17579)
@@ -2182,9 +2182,9 @@
* @param message message
* @param peer peer identity this notification is about
* @param atsi performance data
+ *
* @return GNUNET_OK to keep the connection open,
* GNUNET_SYSERR to close it (signal serious error)
- *
*/
static int
handle_mesh_path_create (void *cls, const struct GNUNET_PeerIdentity *peer,
@@ -2772,7 +2772,7 @@
msg->tid = htonl(t->id.tid);
payload = (struct GNUNET_MessageHeader *) &msg[1];
payload->size = htons (sizeof(struct GNUNET_MessageHeader));
- payload->type = htons (GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE);
+ payload->type = htons (GNUNET_MESSAGE_TYPE_MESH_PATH_KEEPALIVE);
tunnel_send_multicast (t, &msg->header);
t->path_refresh_task =
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17579 - in gnunet/src: include mesh,
gnunet <=