aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-01-21 15:12:42 +0000
committerBart Polot <bart@net.in.tum.de>2014-01-21 15:12:42 +0000
commit42d205bed7f300dbc9fa4e97bb88b35321552a89 (patch)
treec1dfecb664c3fc6e712991470d5473c3e24f505d /src/mesh/gnunet-service-mesh_tunnel.c
parent64e6d4de8a71e63470bf86b0a615e06329b7c266 (diff)
downloadgnunet-42d205bed7f300dbc9fa4e97bb88b35321552a89.tar.gz
gnunet-42d205bed7f300dbc9fa4e97bb88b35321552a89.zip
- don't try to rekey loopback tunnels (#3254)
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index b51fc7f29..30d3408e9 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -1089,6 +1089,9 @@ rekey_iterator (void *cls,
1089 if (GNUNET_SCHEDULER_NO_TASK != t->rekey_task) 1089 if (GNUNET_SCHEDULER_NO_TASK != t->rekey_task)
1090 return GNUNET_YES; 1090 return GNUNET_YES;
1091 1091
1092 if (GNUNET_YES == GMT_is_loopback (t))
1093 return GNUNET_YES;
1094
1092 r = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, (uint32_t) n * 100); 1095 r = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, (uint32_t) n * 100);
1093 delay = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, r); 1096 delay = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, r);
1094 t->rekey_task = GNUNET_SCHEDULER_add_delayed (delay, &rekey_tunnel, t); 1097 t->rekey_task = GNUNET_SCHEDULER_add_delayed (delay, &rekey_tunnel, t);