aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_clients.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-06 18:47:22 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-06 18:47:22 +0000
commitaad2f0838ef0586366fe4e3921013b7af6a4ea65 (patch)
treef8adbdd912e93799caa6936df535e97f96761f95 /src/transport/gnunet-service-transport_clients.c
parent10120fb0e995a8607898347ea48e12ca907e8840 (diff)
downloadgnunet-aad2f0838ef0586366fe4e3921013b7af6a4ea65.tar.gz
gnunet-aad2f0838ef0586366fe4e3921013b7af6a4ea65.zip
send validation PING
Diffstat (limited to 'src/transport/gnunet-service-transport_clients.c')
-rw-r--r--src/transport/gnunet-service-transport_clients.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/transport/gnunet-service-transport_clients.c b/src/transport/gnunet-service-transport_clients.c
index 3b42c7a79..454f544fd 100644
--- a/src/transport/gnunet-service-transport_clients.c
+++ b/src/transport/gnunet-service-transport_clients.c
@@ -592,9 +592,7 @@ GST_clients_handle_address_lookup (void *cls,
592 * 592 *
593 * @param cls our 'struct GNUNET_SERVER_TransmitContext' (for sending) 593 * @param cls our 'struct GNUNET_SERVER_TransmitContext' (for sending)
594 * @param target peer this change is about, never NULL 594 * @param target peer this change is about, never NULL
595 * @param last_validated_at is FOREVER if the address has not been validated (we're currently checking) 595 * @param valid_until until what time do we consider the address valid?
596 * is ZERO if the address was validated a long time ago (from PEERINFO)
597 * is a time in the past if this process validated the address
598 * @param validation_block is FOREVER if the address is for an unsupported plugin (from PEERINFO) 596 * @param validation_block is FOREVER if the address is for an unsupported plugin (from PEERINFO)
599 * is ZERO if the address is considered valid (no validation needed) 597 * is ZERO if the address is considered valid (no validation needed)
600 * is a time in the future if we're currently denying re-validation 598 * is a time in the future if we're currently denying re-validation
@@ -605,7 +603,7 @@ GST_clients_handle_address_lookup (void *cls,
605static void 603static void
606send_address_to_client (void *cls, 604send_address_to_client (void *cls,
607 const struct GNUNET_PeerIdentity *target, 605 const struct GNUNET_PeerIdentity *target,
608 struct GNUNET_TIME_Absolute last_validated_at, 606 struct GNUNET_TIME_Absolute valid_until,
609 struct GNUNET_TIME_Absolute validation_block, 607 struct GNUNET_TIME_Absolute validation_block,
610 const char *plugin_name, 608 const char *plugin_name,
611 const void *plugin_address, 609 const void *plugin_address,
@@ -622,7 +620,7 @@ send_address_to_client (void *cls,
622 (GNUNET_YES == GST_neighbours_test_connected (target)) 620 (GNUNET_YES == GST_neighbours_test_connected (target))
623 ? "CONNECTED" 621 ? "CONNECTED"
624 : "DISCONNECTED", 622 : "DISCONNECTED",
625 (last_validated_at.abs_value < GNUNET_TIME_UNIT_FOREVER_ABS.abs_value) 623 (GNUNET_TIME_absolute_get_remaining (valid_until).rel_value > 0)
626 ? "VALIDATED" 624 ? "VALIDATED"
627 : "UNVALIDATED"); 625 : "UNVALIDATED");
628 transmit_address_to_client (tc, addr_buf); 626 transmit_address_to_client (tc, addr_buf);