diff options
author | Bart Polot <bart@net.in.tum.de> | 2013-10-18 03:39:22 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2013-10-18 03:39:22 +0000 |
commit | 33354bfe79f97acb2c98d08fa4f1c32f2d2b1220 (patch) | |
tree | 622a1af7519a8efa3924328c826ca64f3a5c9435 /src | |
parent | 28653a4922fd5a2d8fb7f72d799c9e79a2400abe (diff) | |
download | gnunet-33354bfe79f97acb2c98d08fa4f1c32f2d2b1220.tar.gz gnunet-33354bfe79f97acb2c98d08fa4f1c32f2d2b1220.zip |
- fix ACK direction
Diffstat (limited to 'src')
-rw-r--r-- | src/mesh/gnunet-service-mesh_channel.c | 5 | ||||
-rw-r--r-- | src/mesh/gnunet-service-mesh_tunnel.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_channel.c b/src/mesh/gnunet-service-mesh_channel.c index 519dda89d..bee65c65c 100644 --- a/src/mesh/gnunet-service-mesh_channel.c +++ b/src/mesh/gnunet-service-mesh_channel.c | |||
@@ -718,7 +718,7 @@ channel_send_ack (struct MeshChannel *ch, int fwd) | |||
718 | * Channel was ACK'd by remote peer, mark as ready and cancel retransmission. | 718 | * Channel was ACK'd by remote peer, mark as ready and cancel retransmission. |
719 | * | 719 | * |
720 | * @param ch Channel to mark as ready. | 720 | * @param ch Channel to mark as ready. |
721 | * @param fwd Was the ACK message sent fwd? (dest->root, SYNACK) | 721 | * @param fwd Was the ACK message a FWD ACK? (dest->root, SYNACK) |
722 | */ | 722 | */ |
723 | static void | 723 | static void |
724 | channel_confirm (struct MeshChannel *ch, int fwd) | 724 | channel_confirm (struct MeshChannel *ch, int fwd) |
@@ -1191,6 +1191,9 @@ GMCH_send_data_ack (struct MeshChannel *ch, int fwd) | |||
1191 | void | 1191 | void |
1192 | GMCH_allow_client (struct MeshChannel *ch, int fwd) | 1192 | GMCH_allow_client (struct MeshChannel *ch, int fwd) |
1193 | { | 1193 | { |
1194 | if (MESH_CHANNEL_READY != ch->state) | ||
1195 | return; | ||
1196 | |||
1194 | send_client_ack (ch, fwd); | 1197 | send_client_ack (ch, fwd); |
1195 | } | 1198 | } |
1196 | 1199 | ||
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c index 5b0573d0a..11c7019c3 100644 --- a/src/mesh/gnunet-service-mesh_tunnel.c +++ b/src/mesh/gnunet-service-mesh_tunnel.c | |||
@@ -1182,7 +1182,7 @@ GMT_send_acks (struct MeshTunnel3 *t, int fwd) | |||
1182 | return; | 1182 | return; |
1183 | } | 1183 | } |
1184 | if (NULL == t->channel_head || | 1184 | if (NULL == t->channel_head || |
1185 | GNUNET_NO == GMCH_is_origin (t->channel_head->ch, fwd)) | 1185 | GNUNET_NO == GMCH_is_origin (t->channel_head->ch, !fwd)) |
1186 | { | 1186 | { |
1187 | GNUNET_break (0); | 1187 | GNUNET_break (0); |
1188 | return; | 1188 | return; |