diff options
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 362ce7e74..1ceb500ba 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c | |||
@@ -115,11 +115,6 @@ struct MeshTunnel3 | |||
115 | MESH_ChannelNumber next_chid; | 115 | MESH_ChannelNumber next_chid; |
116 | 116 | ||
117 | /** | 117 | /** |
118 | * Channel ID for the next incoming channel. | ||
119 | */ | ||
120 | MESH_ChannelNumber next_local_chid; | ||
121 | |||
122 | /** | ||
123 | * Pending message count. | 118 | * Pending message count. |
124 | */ | 119 | */ |
125 | int pending_messages; | 120 | int pending_messages; |
@@ -589,7 +584,6 @@ GMT_new (void) | |||
589 | 584 | ||
590 | t = GNUNET_new (struct MeshTunnel3); | 585 | t = GNUNET_new (struct MeshTunnel3); |
591 | t->next_chid = 0; | 586 | t->next_chid = 0; |
592 | t->next_local_chid = GNUNET_MESH_LOCAL_CHANNEL_ID_SERV; | ||
593 | // if (GNUNET_OK != | 587 | // if (GNUNET_OK != |
594 | // GNUNET_CONTAINER_multihashmap_put (tunnels, tid, t, | 588 | // GNUNET_CONTAINER_multihashmap_put (tunnels, tid, t, |
595 | // GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)) | 589 | // GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_FAST)) |
@@ -1074,13 +1068,12 @@ GMT_get_destination (struct MeshTunnel3 *t) | |||
1074 | } | 1068 | } |
1075 | 1069 | ||
1076 | 1070 | ||
1077 | |||
1078 | /** | 1071 | /** |
1079 | * Get the tunnel's next free Channel ID. | 1072 | * Get the tunnel's next free global channel ID. |
1080 | * | 1073 | * |
1081 | * @param t Tunnel. | 1074 | * @param t Tunnel. |
1082 | * | 1075 | * |
1083 | * @return ID of a channel free to use. | 1076 | * @return GID of a channel free to use. |
1084 | */ | 1077 | */ |
1085 | MESH_ChannelNumber | 1078 | MESH_ChannelNumber |
1086 | GMT_get_next_chid (struct MeshTunnel3 *t) | 1079 | GMT_get_next_chid (struct MeshTunnel3 *t) |