From 15dd8e6cc1199d611d804853e134882bf13b234a Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 5 Feb 2015 00:53:22 +0000 Subject: Various changes: - removed "in_use" from being passed to ATS, no longer needed as we tell ATS when we cannot follow a suggestion by removing the address; simplifies the code a lot - better handling of state machine, fallback to primary session if address switch to new session timed out - nicer logging - more comments - new testcase failures, because of #3652, #3651 and #3650 (or more that i missed). --- src/ats/ats.h | 54 ------------------------------------------------------ 1 file changed, 54 deletions(-) (limited to 'src/ats/ats.h') diff --git a/src/ats/ats.h b/src/ats/ats.h index 482b7b4b3..69788971e 100644 --- a/src/ats/ats.h +++ b/src/ats/ats.h @@ -104,29 +104,6 @@ struct RequestAddressMessage }; -/** - * Scheduling client to ATS service: reset backoff for - * address suggestions to this peer. - */ -struct ResetBackoffMessage -{ - /** - * Type is #GNUNET_MESSAGE_TYPE_ATS_RESET_BACKOFF. - */ - struct GNUNET_MessageHeader header; - - /** - * Always zero. - */ - uint32_t reserved GNUNET_PACKED; - - /** - * Peer to reset backoff for. - */ - struct GNUNET_PeerIdentity peer; -}; - - /** * ATS client to ATS service: here is another address you can use. */ @@ -213,37 +190,6 @@ struct AddressUpdateMessage }; -/** - * Message sent from ATS client to ATS service to notify - * it if we started (or stopped) using an address. - */ -struct AddressUseMessage -{ - /** - * Type is #GNUNET_MESSAGE_TYPE_ATS_ADDRESS_IN_USE. - */ - struct GNUNET_MessageHeader header; - - /** - * Internal number this client uses to refer to this address. - */ - uint32_t session_id GNUNET_PACKED; - - /** - * Which peer is this about? (Technically redundant, as the - * @e session_id should be sufficient, but enables ATS service - * to find the session faster). - */ - struct GNUNET_PeerIdentity peer; - - /** - * #GNUNET_YES or #GNUNET_NO. - */ - uint32_t in_use GNUNET_PACKED; - -}; - - /** * Message sent by ATS client to ATS service when an address * was destroyed and must thus henceforth no longer be considered -- cgit v1.2.3