diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-08-01 09:42:35 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-08-01 09:42:35 +0000 |
commit | c332f5fe5ecbf213955580b0368de1e6c281c19b (patch) | |
tree | fc848cf2b8dbf5a51b7ffed4c2f0d51bc96250bc /src | |
parent | 974d4e5d36f0ef1f93f7f881ec21b45ab518bdcc (diff) | |
download | gnunet-c332f5fe5ecbf213955580b0368de1e6c281c19b.tar.gz gnunet-c332f5fe5ecbf213955580b0368de1e6c281c19b.zip |
- fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-service-mesh-enc.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/src/mesh/gnunet-service-mesh-enc.c b/src/mesh/gnunet-service-mesh-enc.c index 17982133e..f2eb0f98c 100644 --- a/src/mesh/gnunet-service-mesh-enc.c +++ b/src/mesh/gnunet-service-mesh-enc.c | |||
@@ -2423,7 +2423,7 @@ channel_get_by_local_id (struct MeshClient *c, MESH_ChannelNumber chid) | |||
2423 | * | 2423 | * |
2424 | * @return tunnel handler, NULL if doesn't exist | 2424 | * @return tunnel handler, NULL if doesn't exist |
2425 | */ | 2425 | */ |
2426 | static struct MeshTunnel * | 2426 | static struct MeshChannel * |
2427 | channel_get_by_pi (GNUNET_PEER_Id pi, MESH_ChannelNumber tid) | 2427 | channel_get_by_pi (GNUNET_PEER_Id pi, MESH_ChannelNumber tid) |
2428 | { | 2428 | { |
2429 | // struct GNUNET_HashCode hash; | 2429 | // struct GNUNET_HashCode hash; |
@@ -2441,7 +2441,7 @@ channel_get_by_pi (GNUNET_PEER_Id pi, MESH_ChannelNumber tid) | |||
2441 | * | 2441 | * |
2442 | * @return tunnel handler, NULL if doesn't exist | 2442 | * @return tunnel handler, NULL if doesn't exist |
2443 | */ | 2443 | */ |
2444 | static struct MeshTunnel * | 2444 | static struct MeshChannel * |
2445 | channel_get (const struct GNUNET_PeerIdentity *oid, MESH_ChannelNumber tid) | 2445 | channel_get (const struct GNUNET_PeerIdentity *oid, MESH_ChannelNumber tid) |
2446 | { | 2446 | { |
2447 | return channel_get_by_pi (GNUNET_PEER_search (oid), tid); | 2447 | return channel_get_by_pi (GNUNET_PEER_search (oid), tid); |
@@ -2455,7 +2455,7 @@ channel_get (const struct GNUNET_PeerIdentity *oid, MESH_ChannelNumber tid) | |||
2455 | * @param state New state. | 2455 | * @param state New state. |
2456 | */ | 2456 | */ |
2457 | static void | 2457 | static void |
2458 | tunnel_change_state (MeshTunnel2* t, MeshTunnelState state) | 2458 | tunnel_change_state (struct MeshTunnel2* t, enum MeshTunnelState state) |
2459 | { | 2459 | { |
2460 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 2460 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
2461 | "Tunnel %s[%X] state was %s\n", | 2461 | "Tunnel %s[%X] state was %s\n", |
@@ -2488,11 +2488,11 @@ connection_change_state (struct MeshConnection* c, | |||
2488 | /** | 2488 | /** |
2489 | * Add a client to a tunnel, initializing all needed data structures. | 2489 | * Add a client to a tunnel, initializing all needed data structures. |
2490 | * | 2490 | * |
2491 | * @param t Tunnel to which add the client. | 2491 | * @param ch Channel to which add the client. |
2492 | * @param c Client which to add to the tunnel. | 2492 | * @param c Client which to add to the channel. |
2493 | */ | 2493 | */ |
2494 | static void | 2494 | static void |
2495 | tunnel_add_client (struct MeshTunnel *t, struct MeshClient *c) | 2495 | channel_add_client (struct MeshChannel *ch, struct MeshClient *c) |
2496 | { | 2496 | { |
2497 | if (NULL != t->client) | 2497 | if (NULL != t->client) |
2498 | { | 2498 | { |
@@ -2540,12 +2540,10 @@ tunnel_use_path (struct MeshTunnel2 *t, struct MeshPeerPath *p) | |||
2540 | c->path = p; | 2540 | c->path = p; |
2541 | c->id = t->next_cid++; | 2541 | c->id = t->next_cid++; |
2542 | c->t = t; | 2542 | c->t = t; |
2543 | GNUNET_CONTAINER_DLL_insert (t->connection_head, t->connection_tail, c); | 2543 | GNUNET_CONTAINER_DLL_insert_tail (t->connection_head, t->connection_tail, c); |
2544 | 2544 | ||
2545 | if (0 == own_pos) | 2545 | if (0 == own_pos) |
2546 | { | 2546 | { |
2547 | if (GNUNET_SCHEDULER_NO_TASK != c->fwd_maintenance_task) | ||
2548 | GNUNET_SCHEDULER_cancel (c->fwd_maintenance_task); | ||
2549 | c->fwd_maintenance_task = | 2547 | c->fwd_maintenance_task = |
2550 | GNUNET_SCHEDULER_add_delayed (refresh_connection_time, | 2548 | GNUNET_SCHEDULER_add_delayed (refresh_connection_time, |
2551 | &connection_fwd_keepalive, c); | 2549 | &connection_fwd_keepalive, c); |