diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-07-21 09:52:18 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-07-21 09:52:18 +0000 |
commit | b548f49cfae30fbea2c0fd720dc7dfb544b856c0 (patch) | |
tree | d4c69c7e1364b4ae0367d9b5b355e8a5d5c5d5c9 /src | |
parent | aa4d05250b7150dae8ba8f1225e12c17f69b4b42 (diff) | |
download | gnunet-b548f49cfae30fbea2c0fd720dc7dfb544b856c0.tar.gz gnunet-b548f49cfae30fbea2c0fd720dc7dfb544b856c0.zip |
- more debug info on buildbots
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_channel.c | 1 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 2 | ||||
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 15 |
3 files changed, 11 insertions, 7 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c index f7d2ed860..0aa2b03db 100644 --- a/src/cadet/gnunet-service-cadet_channel.c +++ b/src/cadet/gnunet-service-cadet_channel.c | |||
@@ -2384,6 +2384,7 @@ GCCH_send_prebuilt_message (const struct GNUNET_MessageHeader *message, | |||
2384 | if (NULL == chq->tq) | 2384 | if (NULL == chq->tq) |
2385 | { | 2385 | { |
2386 | GNUNET_break (0); | 2386 | GNUNET_break (0); |
2387 | GCT_debug (ch->t, GNUNET_ERROR_TYPE_ERROR); | ||
2387 | GNUNET_free (chq); | 2388 | GNUNET_free (chq); |
2388 | chq = NULL; | 2389 | chq = NULL; |
2389 | return; | 2390 | return; |
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 397d4d2ff..9d2583d5f 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c | |||
@@ -956,6 +956,7 @@ connection_maintain (struct CadetConnection *c, int fwd) | |||
956 | if (NULL == c->t) | 956 | if (NULL == c->t) |
957 | { | 957 | { |
958 | GNUNET_break (0); | 958 | GNUNET_break (0); |
959 | GCC_debug (c, GNUNET_ERROR_TYPE_ERROR); | ||
959 | return; | 960 | return; |
960 | } | 961 | } |
961 | 962 | ||
@@ -1832,6 +1833,7 @@ GCC_handle_broken (void* cls, | |||
1832 | { | 1833 | { |
1833 | /* A terminal connection should not have 't' set to NULL. */ | 1834 | /* A terminal connection should not have 't' set to NULL. */ |
1834 | GNUNET_break (0); | 1835 | GNUNET_break (0); |
1836 | GCC_debug (c, GNUNET_ERROR_TYPE_ERROR); | ||
1835 | return GNUNET_OK; | 1837 | return GNUNET_OK; |
1836 | } | 1838 | } |
1837 | neighbor = get_hop (c, !fwd); | 1839 | neighbor = get_hop (c, !fwd); |
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 6e5137925..e0f8567e7 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -1269,12 +1269,12 @@ send_kx (struct CadetTunnel *t, | |||
1269 | /* Must have a connection. */ | 1269 | /* Must have a connection. */ |
1270 | if (NULL == t->connection_head && CADET_TUNNEL_SEARCHING != t->cstate) | 1270 | if (NULL == t->connection_head && CADET_TUNNEL_SEARCHING != t->cstate) |
1271 | { | 1271 | { |
1272 | LOG (GNUNET_ERROR_TYPE_WARNING, "\n\n\n"); | 1272 | LOG (GNUNET_ERROR_TYPE_ERROR, "\n\n\n"); |
1273 | GNUNET_break (0); | 1273 | GNUNET_break (0); |
1274 | LOG (GNUNET_ERROR_TYPE_WARNING, "sending %s\n", GC_m2s (type)); | 1274 | LOG (GNUNET_ERROR_TYPE_ERROR, "no connection, sending %s\n", GC_m2s (type)); |
1275 | GCT_debug (t, GNUNET_ERROR_TYPE_WARNING); | 1275 | GCT_debug (t, GNUNET_ERROR_TYPE_ERROR); |
1276 | GCP_debug (t->peer, GNUNET_ERROR_TYPE_WARNING); | 1276 | GCP_debug (t->peer, GNUNET_ERROR_TYPE_ERROR); |
1277 | LOG (GNUNET_ERROR_TYPE_WARNING, "\n\n\n"); | 1277 | LOG (GNUNET_ERROR_TYPE_ERROR, "\n\n\n"); |
1278 | return; | 1278 | return; |
1279 | } | 1279 | } |
1280 | 1280 | ||
@@ -1286,7 +1286,7 @@ send_kx (struct CadetTunnel *t, | |||
1286 | { | 1286 | { |
1287 | GNUNET_break (GNUNET_SCHEDULER_NO_TASK != t->destroy_task | 1287 | GNUNET_break (GNUNET_SCHEDULER_NO_TASK != t->destroy_task |
1288 | || CADET_TUNNEL_READY != t->cstate); | 1288 | || CADET_TUNNEL_READY != t->cstate); |
1289 | GCT_debug (t, GNUNET_ERROR_TYPE_WARNING); | 1289 | GCT_debug (t, GNUNET_ERROR_TYPE_ERROR); |
1290 | return; | 1290 | return; |
1291 | } | 1291 | } |
1292 | switch (type) | 1292 | switch (type) |
@@ -1878,8 +1878,9 @@ handle_ping (struct CadetTunnel *t, | |||
1878 | t_decrypt (t, &res.target, &msg->target, ping_encryption_size (), msg->iv); | 1878 | t_decrypt (t, &res.target, &msg->target, ping_encryption_size (), msg->iv); |
1879 | if (0 != memcmp (&my_full_id, &res.target, sizeof (my_full_id))) | 1879 | if (0 != memcmp (&my_full_id, &res.target, sizeof (my_full_id))) |
1880 | { | 1880 | { |
1881 | /* probably peer hasn't got our new EPHM yet and derived the wrong keys */ | ||
1881 | GNUNET_STATISTICS_update (stats, "# malformed PINGs", 1, GNUNET_NO); | 1882 | GNUNET_STATISTICS_update (stats, "# malformed PINGs", 1, GNUNET_NO); |
1882 | LOG (GNUNET_ERROR_TYPE_WARNING, " malformed PING on %s\n", GCT_2s (t)); | 1883 | LOG (GNUNET_ERROR_TYPE_INFO, " malformed PING on %s\n", GCT_2s (t)); |
1883 | LOG (GNUNET_ERROR_TYPE_DEBUG, " e got %u\n", msg->nonce); | 1884 | LOG (GNUNET_ERROR_TYPE_DEBUG, " e got %u\n", msg->nonce); |
1884 | LOG (GNUNET_ERROR_TYPE_DEBUG, " e towards %s\n", GNUNET_i2s (&msg->target)); | 1885 | LOG (GNUNET_ERROR_TYPE_DEBUG, " e towards %s\n", GNUNET_i2s (&msg->target)); |
1885 | LOG (GNUNET_ERROR_TYPE_DEBUG, " got %u\n", res.nonce); | 1886 | LOG (GNUNET_ERROR_TYPE_DEBUG, " got %u\n", res.nonce); |