aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-08-23 16:04:37 +0000
committerBart Polot <bart@net.in.tum.de>2013-08-23 16:04:37 +0000
commit5851a81991e5540eac4e3c10d1db500908217c72 (patch)
treea7f04568ba9f2936f9b84de6296c0b7144f22496 /src
parentf55f0c3a29a560dda6adcc82f9c7906a09f9d293 (diff)
downloadgnunet-5851a81991e5540eac4e3c10d1db500908217c72.tar.gz
gnunet-5851a81991e5540eac4e3c10d1db500908217c72.zip
- fix ack direction
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-service-mesh-enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh-enc.c b/src/mesh/gnunet-service-mesh-enc.c
index 710bfc873..c0fd027e2 100644
--- a/src/mesh/gnunet-service-mesh-enc.c
+++ b/src/mesh/gnunet-service-mesh-enc.c
@@ -1865,7 +1865,7 @@ send_connection_ack (struct MeshConnection *connection, int fwd)
1865 * 1865 *
1866 * @param c Which connection to send the hop-by-hop ACK. 1866 * @param c Which connection to send the hop-by-hop ACK.
1867 * @param ack Value of the ACK. 1867 * @param ack Value of the ACK.
1868 * @param fwd Is this fwd? 1868 * @param fwd Is this a fwd ACK? (will go dest->root)
1869 */ 1869 */
1870static void 1870static void
1871send_ack (struct MeshConnection *c, uint32_t ack, int fwd) 1871send_ack (struct MeshConnection *c, uint32_t ack, int fwd)
@@ -1881,7 +1881,7 @@ send_ack (struct MeshConnection *c, uint32_t ack, int fwd)
1881 "send %s ack %u on %s\n", 1881 "send %s ack %u on %s\n",
1882 fwd ? "FWD" : "BCK", ack, GNUNET_h2s (&c->id)); 1882 fwd ? "FWD" : "BCK", ack, GNUNET_h2s (&c->id));
1883 1883
1884 send_prebuilt_message_connection (&msg.header, c, NULL, fwd); 1884 send_prebuilt_message_connection (&msg.header, c, NULL, !fwd);
1885} 1885}
1886 1886
1887 1887