diff options
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-service-transport_validation.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index 98a73b3da..b2fd5afa7 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c | |||
@@ -985,13 +985,23 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, | |||
985 | GNUNET_free (plugin_name); | 985 | GNUNET_free (plugin_name); |
986 | if (GNUNET_OK != papi->check_address (papi->cls, addrend, alen)) | 986 | if (GNUNET_OK != papi->check_address (papi->cls, addrend, alen)) |
987 | { | 987 | { |
988 | GNUNET_STATISTICS_update (GST_stats, | ||
989 | gettext_noop | ||
990 | ("# failed address checks during validation"), 1, | ||
991 | GNUNET_NO); | ||
988 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Address `%s' is not one of my addresses, not confirming PING\n", | 992 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Address `%s' is not one of my addresses, not confirming PING\n", |
989 | GST_plugins_a2s (&address)); | 993 | GST_plugins_a2s (&address)); |
990 | return; | 994 | return; |
991 | } | 995 | } |
992 | else | 996 | else |
993 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Address `%s' is one of my addresses, confirming PING\n", | 997 | { |
994 | GST_plugins_a2s (&address)); /* DEBUGGING*/ | 998 | GNUNET_STATISTICS_update (GST_stats, |
999 | gettext_noop | ||
1000 | ("# successful address checks during validation"), 1, | ||
1001 | GNUNET_NO); | ||
1002 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Address `%s' is one of my addresses, confirming PING\n", | ||
1003 | GST_plugins_a2s (&address)); | ||
1004 | } | ||
995 | 1005 | ||
996 | if (GNUNET_YES != GST_hello_test_address (&address, &sig_cache, &sig_cache_exp)) | 1006 | if (GNUNET_YES != GST_hello_test_address (&address, &sig_cache, &sig_cache_exp)) |
997 | { | 1007 | { |