From fd77112f5b46f75e4eb9bf155fb8052c0d79f77a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 7 Oct 2015 11:54:46 +0000 Subject: add additional diagnostics to help localize #3971 invariant violation --- src/transport/gnunet-service-transport_ats.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/transport/gnunet-service-transport_ats.h') diff --git a/src/transport/gnunet-service-transport_ats.h b/src/transport/gnunet-service-transport_ats.h index 323191a4d..de0800d0a 100644 --- a/src/transport/gnunet-service-transport_ats.h +++ b/src/transport/gnunet-service-transport_ats.h @@ -42,17 +42,27 @@ GST_ats_done (void); /** - * Test if ATS knows about this address. + * Test if ATS knows about this @a address and @a session. * * @param address the address * @param session the session - * @return #GNUNET_YES if address is known, #GNUNET_NO if not. + * @return #GNUNET_YES if @a address is known, #GNUNET_NO if not. */ int GST_ats_is_known (const struct GNUNET_HELLO_Address *address, struct Session *session); +/** + * Test if ATS knows about this @a address. + * + * @param address the address + * @return #GNUNET_YES if @a address is known, #GNUNET_NO if not. + */ +int +GST_ats_is_known_no_session (const struct GNUNET_HELLO_Address *address); + + /** * Temporarily block a valid address for use by ATS for address * suggestions. This function should be called if an address was -- cgit v1.2.3