X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Finclude%2Fgnunet_protocols.h;h=af4dbd52fec5c022e6b5b4ddb931985ff9bb5224;hb=634aea297cc983c3d70f65a004f698f215abe590;hp=c5e45d5c1e837947d21dcf4e40068c4b8bf7194d;hpb=3915b341a6218c6a6a1b1261ae69d8cf56b424e6;p=oweals%2Fgnunet.git diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index c5e45d5c1..af4dbd52f 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h @@ -1,21 +1,21 @@ /* This file is part of GNUnet. - Copyright (C) 2001--2015 GNUnet e.V. + Copyright (C) 2001--2018 GNUnet e.V. - GNUnet is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published - by the Free Software Foundation; either version 3, or (at your - option) any later version. + GNUnet is free software: you can redistribute it and/or modify it + under the terms of the GNU Affero General Public License as published + by the Free Software Foundation, either version 3 of the License, + or (at your option) any later version. GNUnet is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. + Affero General Public License for more details. - You should have received a copy of the GNU General Public License - along with GNUnet; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + + SPDX-License-Identifier: AGPL3.0-or-later */ /** @@ -85,6 +85,21 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 5 +/******************************************************************************* + * AGPL source code download + * *****************************************************************************/ + +/** + * Message to request source code link. + */ +#define GNUNET_MESSAGE_TYPE_REQUEST_AGPL 6 + +/** + * Source code link. + */ +#define GNUNET_MESSAGE_TYPE_RESPONSE_AGPL 7 + + /******************************************************************************* * ARM message types ******************************************************************************/ @@ -252,6 +267,12 @@ extern "C" #define GNUNET_MESSAGE_TYPE_DV_BOX 53 +/** + * Experimental message type. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_XU_MESSAGE 55 + + /******************************************************************************* * Transport-UDP message types ******************************************************************************/ @@ -1333,6 +1354,12 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP 448 +/** + * Service to client: end of list of results + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_RESULT_END 449 + + /******************************************************************************* * LOCKMANAGER message types ******************************************************************************/ @@ -2600,33 +2627,29 @@ extern "C" /* Client-Service Messages */ -/** - * RPS CS REQUEST Message for the Client to request (a) random peer(s) - */ -#define GNUNET_MESSAGE_TYPE_RPS_CS_REQUEST 954 /** - * RPS CS REPLY Message for the Server to send (a) random peer(s) + * RPS CS SEED Message for the Client to seed peers into rps */ -#define GNUNET_MESSAGE_TYPE_RPS_CS_REPLY 955 +#define GNUNET_MESSAGE_TYPE_RPS_CS_SEED 954 +#ifdef ENABLE_MALICIOUS /** - * RPS CS REQUEST CANCEL Message for the Client to cancel a request + * Turn RPS service malicious */ -#define GNUNET_MESSAGE_TYPE_RPS_CS_REQUEST_CANCEL 956 +#define GNUNET_MESSAGE_TYPE_RPS_ACT_MALICIOUS 955 + +#endif /* ENABLE_MALICIOUS */ /** - * RPS CS SEED Message for the Client to seed peers into rps + * RPS client-service message to start a sub sampler */ -#define GNUNET_MESSAGE_TYPE_RPS_CS_SEED 957 +#define GNUNET_MESSAGE_TYPE_RPS_CS_SUB_START 956 -#ifdef ENABLE_MALICIOUS /** - * Turn RPS service malicious + * RPS client-service message to stop a sub sampler */ -#define GNUNET_MESSAGE_TYPE_RPS_ACT_MALICIOUS 958 - -#endif /* ENABLE_MALICIOUS */ +#define GNUNET_MESSAGE_TYPE_RPS_CS_SUB_STOP 957 /* Debugging API continues at 1130 */ @@ -2637,35 +2660,35 @@ extern "C" * * IDENTITY PROVIDER MESSAGE TYPES */ -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_ATTRIBUTE_STORE 961 +#define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_STORE 961 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_ATTRIBUTE_STORE_RESPONSE 962 +#define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_STORE_RESPONSE 962 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_ATTRIBUTE_ITERATION_START 963 +#define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_START 963 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_ATTRIBUTE_ITERATION_STOP 964 +#define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_STOP 964 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_ATTRIBUTE_ITERATION_NEXT 965 +#define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_ITERATION_NEXT 965 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_ATTRIBUTE_RESULT 966 +#define GNUNET_MESSAGE_TYPE_RECLAIM_ATTRIBUTE_RESULT 966 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_ISSUE_TICKET 967 +#define GNUNET_MESSAGE_TYPE_RECLAIM_ISSUE_TICKET 967 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_TICKET_RESULT 968 +#define GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_RESULT 968 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_REVOKE_TICKET 969 +#define GNUNET_MESSAGE_TYPE_RECLAIM_REVOKE_TICKET 969 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_REVOKE_TICKET_RESULT 970 +#define GNUNET_MESSAGE_TYPE_RECLAIM_REVOKE_TICKET_RESULT 970 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_CONSUME_TICKET 971 +#define GNUNET_MESSAGE_TYPE_RECLAIM_CONSUME_TICKET 971 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_CONSUME_TICKET_RESULT 972 +#define GNUNET_MESSAGE_TYPE_RECLAIM_CONSUME_TICKET_RESULT 972 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_TICKET_ITERATION_START 973 +#define GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_ITERATION_START 973 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_TICKET_ITERATION_STOP 974 +#define GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_ITERATION_STOP 974 -#define GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_TICKET_ITERATION_NEXT 975 +#define GNUNET_MESSAGE_TYPE_RECLAIM_TICKET_ITERATION_NEXT 975 /************************************************** * @@ -2974,10 +2997,183 @@ extern "C" #define GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_VIEW_CANCEL 1132 +/** + * @brief Request biased input stream + */ +#define GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_STREAM_REQUEST 1133 + +/** + * @brief Send peer of biased stream + */ +#define GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_STREAM_REPLY 1134 + +/** + * @brief Cancel getting biased strem + */ +#define GNUNET_MESSAGE_TYPE_RPS_CS_DEBUG_STREAM_CANCEL 1135 + + +/******************************************************* + NEW (TNG) Transport service + ******************************************************* */ + +/** + * @brief inform transport to add an address of this peer + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADD_ADDRESS 1200 + +/** + * @brief inform transport to delete an address of this peer + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_DEL_ADDRESS 1201 + +/** + * @brief inform transport about an incoming message + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_INCOMING_MSG 1202 + +/** + * @brief transport acknowledges processing an incoming message + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_INCOMING_MSG_ACK 1203 + +/** + * @brief inform transport that a queue was setup to talk to some peer + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_SETUP 1204 + +/** + * @brief inform transport that a queue was torn down + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_TEARDOWN 1205 + +/** + * @brief transport tells communicator it wants a queue + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE 1206 + +/** + * Response from communicator: will try to create queue. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE_OK 1207 + +/** + * Response from communicator: address bogus, will not try to create queue. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_QUEUE_CREATE_FAIL 1208 + +/** + * @brief transport tells communicator it wants to transmit + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_MSG 1209 + +/** + * @brief communicator tells transports that message was sent + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_MSG_ACK 1210 + +/** + * Message sent to indicate to the transport which address + * prefix is supported by a communicator. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_NEW_COMMUNICATOR 1211 + +/** + * Tell transport that it should assist with exchanging a + * message between communicators. Usually used when + * communciators are uni-directional and need an alternative + * back-channel. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_BACKCHANNEL 1212 + +/** + * Message type used between transport services when they + * internally forward communicator backchannel messages. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_BACKCHANNEL_ENCAPSULATION 1213 + + +/** + * Message sent to indicate to the transport that a monitor + * wants to observe certain events. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_START 1250 + +/** + * Message sent to indicate to a monitor about events. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_DATA 1251 + +/** + * Message sent to indicate to a monitor that a one-shot + * iteration over events is done. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_MONITOR_END 1252 + +/** + * Message exchanged between communicators to confirm + * successful KX (and address validation). + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_KX_CONFIRMATION 1275 + +/** + * Message exchanged between communicators to exchange + * flow control (FC) limits and acknowledgemets. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_FC_LIMITS 1276 + + +/* ************** NEW (NG) ATS Messages ************* */ + +/** + * Type of the 'struct ExpressPreferenceMessage' send by clients to ATS + * to establish bandwidth preference. + */ +#define GNUNET_MESSAGE_TYPE_ATS_SUGGEST 1400 + +/** + * Type of the 'struct ExpressPreferenceMessage' send by clients to ATS + * to abandon bandwidth preference. + */ +#define GNUNET_MESSAGE_TYPE_ATS_SUGGEST_CANCEL 1401 + /** - * Next available: 1200 + * Type of the 'struct SessionAddMessage' send by transport clients to ATS + * to ask ATS to allocate resources to a session. */ +#define GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD 1402 + +/** + * Type of the 'struct SessionAddMessage' send by transport clients to ATS + * to inform ATS about a session where resources are consumed but allocation + * is impossible (unidirectional). + */ +#define GNUNET_MESSAGE_TYPE_ATS_SESSION_ADD_INBOUND_ONLY 1403 + +/** + * Type of the 'struct SessionUpdateMessage' send by transport clients to ATS + * to inform ATS about property changes of a session. + */ +#define GNUNET_MESSAGE_TYPE_ATS_SESSION_UPDATE 1404 + +/** + * Type of the 'struct SessionDelMessage' send by transport clients to ATS + * to tell ATS that a session is no longer available. + */ +#define GNUNET_MESSAGE_TYPE_ATS_SESSION_DEL 1405 + +/** + * Type of the 'struct SessionAllocationMessage' send by ATS to the + * transport to tell it about resources to allocate to the session. + */ +#define GNUNET_MESSAGE_TYPE_ATS_SESSION_ALLOCATION 1406 + + +/** + * Next available: 1450 + */ + /**