[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r30586 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r30586 - gnunet/src/mesh |
Date: |
Thu, 7 Nov 2013 03:10:00 +0100 |
Author: bartpolot
Date: 2013-11-07 03:10:00 +0100 (Thu, 07 Nov 2013)
New Revision: 30586
Modified:
gnunet/src/mesh/gnunet-service-mesh_tunnel.c
Log:
- loopback traffic redirection
Modified: gnunet/src/mesh/gnunet-service-mesh_tunnel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_tunnel.c 2013-11-07 02:06:36 UTC
(rev 30585)
+++ gnunet/src/mesh/gnunet-service-mesh_tunnel.c 2013-11-07 02:10:00 UTC
(rev 30586)
@@ -1172,7 +1172,7 @@
"Tunnel %s state is now %s\n",
GMP_2s (t->peer),
GMT_state2s (state));
- if (myid != GMP_get_short_id(t->peer) &&
+ if (myid != GMP_get_short_id (t->peer) &&
MESH_TUNNEL3_WAITING == t->state && MESH_TUNNEL3_READY == state)
{
rekey_tunnel (t, NULL);
@@ -1733,6 +1733,13 @@
}
LOG (GNUNET_ERROR_TYPE_DEBUG, "GMT Send on Tunnel %s\n", GMT_2s (t));
+ if (myid == GMP_get_short_id (t->peer))
+ {
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " loopback!\n");
+ handle_decrypted (t, message, fwd);
+ return;
+ }
+
iv = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_NONCE, UINT64_MAX);
msg = (struct GNUNET_MESH_Encrypted *) cbuf;
msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_ENCRYPTED);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r30586 - gnunet/src/mesh,
gnunet <=