aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-10-11 17:51:11 +0000
committerBart Polot <bart@net.in.tum.de>2013-10-11 17:51:11 +0000
commit4e3b061518f83544423304955f6a675949475b02 (patch)
tree11948955e9d8508125db95df9170167a30cba080 /src/mesh/gnunet-service-mesh_tunnel.c
parent9ab259c526d3b8b2923c635dc4255be5b50bdfdf (diff)
downloadgnunet-4e3b061518f83544423304955f6a675949475b02.tar.gz
gnunet-4e3b061518f83544423304955f6a675949475b02.zip
- avoid infinite ACK loops when creating loopback channels
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index 3f338ac3f..9bcfc8365 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -33,6 +33,9 @@
33 33
34#define LOG(level, ...) GNUNET_log_from(level,"mesh-tun",__VA_ARGS__) 34#define LOG(level, ...) GNUNET_log_from(level,"mesh-tun",__VA_ARGS__)
35 35
36#define START_FUNCTION LOG(GNUNET_ERROR_TYPE_DEBUG, "%s start\n", __FUNCTION__)
37#define END_FUNCTION LOG(GNUNET_ERROR_TYPE_DEBUG, "%s end\n", __FUNCTION__)
38
36 39
37/******************************************************************************/ 40/******************************************************************************/
38/******************************** STRUCTS **********************************/ 41/******************************** STRUCTS **********************************/
@@ -371,6 +374,8 @@ handle_ch_create (struct MeshTunnel3 *t,
371 const struct GNUNET_MESH_ChannelCreate *msg, 374 const struct GNUNET_MESH_ChannelCreate *msg,
372 int fwd) 375 int fwd)
373{ 376{
377 ;
378
374 struct MeshTChannel *tch; 379 struct MeshTChannel *tch;
375 struct MeshChannel *ch; 380 struct MeshChannel *ch;
376 size_t size; 381 size_t size;
@@ -398,6 +403,8 @@ handle_ch_create (struct MeshTunnel3 *t,
398 tch = GNUNET_new (struct MeshTChannel); 403 tch = GNUNET_new (struct MeshTChannel);
399 tch->ch = ch; 404 tch->ch = ch;
400 GNUNET_CONTAINER_DLL_insert (t->channel_head, t->channel_tail, tch); 405 GNUNET_CONTAINER_DLL_insert (t->channel_head, t->channel_tail, tch);
406
407 ;
401} 408}
402 409
403void 410void