aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-12-18 20:43:10 +0000
committerBart Polot <bart@net.in.tum.de>2013-12-18 20:43:10 +0000
commitb6dc8a5a5871ad480cab1f84208ce2855a6f25fb (patch)
treea6601be8c906274d9fdff1f14ee5bb8fd5246e3d
parent46244f4cb8abfb65de29fb8de8aad2209d449ecb (diff)
downloadgnunet-b6dc8a5a5871ad480cab1f84208ce2855a6f25fb.tar.gz
gnunet-b6dc8a5a5871ad480cab1f84208ce2855a6f25fb.zip
- show WARNINGs for bad handshakes
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index dab9df1e6..6976d576d 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -1461,7 +1461,7 @@ handle_ping (struct MeshTunnel3 *t,
1461 if (0 != memcmp (&my_full_id, &res.target, sizeof (my_full_id))) 1461 if (0 != memcmp (&my_full_id, &res.target, sizeof (my_full_id)))
1462 { 1462 {
1463 GNUNET_STATISTICS_update (stats, "# malformed PINGs", 1, GNUNET_NO); 1463 GNUNET_STATISTICS_update (stats, "# malformed PINGs", 1, GNUNET_NO);
1464 LOG (GNUNET_ERROR_TYPE_DEBUG, " WARNING malformed PING\n"); 1464 LOG (GNUNET_ERROR_TYPE_WARNING, " malformed PING\n");
1465 LOG (GNUNET_ERROR_TYPE_DEBUG, " e got %u\n", msg->nonce); 1465 LOG (GNUNET_ERROR_TYPE_DEBUG, " e got %u\n", msg->nonce);
1466 LOG (GNUNET_ERROR_TYPE_DEBUG, " e towards %s\n", GNUNET_i2s (&msg->target)); 1466 LOG (GNUNET_ERROR_TYPE_DEBUG, " e towards %s\n", GNUNET_i2s (&msg->target));
1467 LOG (GNUNET_ERROR_TYPE_DEBUG, " got %u\n", res.nonce); 1467 LOG (GNUNET_ERROR_TYPE_DEBUG, " got %u\n", res.nonce);
@@ -1497,8 +1497,8 @@ handle_pong (struct MeshTunnel3 *t,
1497 1497
1498 if (challenge != t->kx_ctx->challenge) 1498 if (challenge != t->kx_ctx->challenge)
1499 { 1499 {
1500 LOG (GNUNET_ERROR_TYPE_DEBUG, 1500 LOG (GNUNET_ERROR_TYPE_WARNING, "Wrong PONG challenge\n");
1501 "Wrong PONG challenge: %u (e: %u). Expected: %u.\n", 1501 LOG (GNUNET_ERROR_TYPE_DEBUG, "PONG: %u (e: %u). Expected: %u.\n",
1502 challenge, msg->nonce, t->kx_ctx->challenge); 1502 challenge, msg->nonce, t->kx_ctx->challenge);
1503 GNUNET_break_op (0); 1503 GNUNET_break_op (0);
1504 return; 1504 return;