diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-10-18 15:40:57 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-10-18 15:40:57 +0000 |
commit | b85bde32b7786ea6d162904cf28dd15c18504d72 (patch) | |
tree | 2e3db696debbab4bbd77278ce089faf1fd479baf /src/mesh/gnunet-service-mesh.c | |
parent | 406d0c278e3c97456189bc49bc44dd0c5c9b7198 (diff) | |
download | gnunet-b85bde32b7786ea6d162904cf28dd15c18504d72.tar.gz gnunet-b85bde32b7786ea6d162904cf28dd15c18504d72.zip |
Change keepalive packets to explicit message type number
Diffstat (limited to 'src/mesh/gnunet-service-mesh.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 | */ |
2189 | static int | 2189 | static int |
2190 | handle_mesh_path_create (void *cls, const struct GNUNET_PeerIdentity *peer, | 2190 | handle_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 = |