X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Finclude%2Fgnunet_protocols.h;h=df123ceb197e5623a8d5c256f43af922557d2b81;hb=db3b3123f9d157c71d8b3d9e3b1d5966fe471599;hp=5b793b5fae6144822174e10833e795b98f1fcd09;hpb=c4dec31821271d83e8895de9df11beaeb7154266;p=oweals%2Fgnunet.git diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 5b793b5fa..df123ceb1 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h @@ -35,23 +35,37 @@ extern "C" #endif #endif +/******************************************************************************* + * UTIL message types + ******************************************************************************/ + /** * Test if service is online. */ #define GNUNET_MESSAGE_TYPE_TEST 1 +/** + * Dummy messages for testing / benchmarking. + */ +#define GNUNET_MESSAGE_TYPE_DUMMY 2 + +/******************************************************************************* + * RESOLVER message types + ******************************************************************************/ /** * Request DNS resolution. */ -#define GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST 2 +#define GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST 4 /** * Response to a DNS resolution request. */ -#define GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 3 - +#define GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 5 +/******************************************************************************* + * ARM message types + ******************************************************************************/ /** * Request to ARM to start a service. @@ -64,31 +78,28 @@ extern "C" #define GNUNET_MESSAGE_TYPE_ARM_STOP 9 /** - * Response from ARM: service is now up. + * Request ARM service itself to shutdown. */ -#define GNUNET_MESSAGE_TYPE_ARM_IS_UP 10 +#define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN 10 /** - * Response from ARM: service is now down. - * (failed to start it or shut it down). + * Response from ARM. */ -#define GNUNET_MESSAGE_TYPE_ARM_IS_DOWN 11 +#define GNUNET_MESSAGE_TYPE_ARM_RESULT 11 /** - * Response from ARM: service status is unknown. + * Request to ARM to list all currently running services */ -#define GNUNET_MESSAGE_TYPE_ARM_IS_UNKNOWN 12 +#define GNUNET_MESSAGE_TYPE_ARM_LIST 12 /** - * Request ARM service shutdown. + * Response from ARM for listing currently running services */ -#define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN 13 +#define GNUNET_MESSAGE_TYPE_ARM_LIST_RESULT 13 -/** - * Acknowledge service shutting down, disconnect - * indicates service stopped. - */ -#define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN_ACK 14 +/******************************************************************************* + * HELLO message types + ******************************************************************************/ /** * HELLO message used for communicating peer addresses. @@ -96,125 +107,55 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_HELLO 16 +/******************************************************************************* + * FRAGMENTATION message types + ******************************************************************************/ + /** * FRAGMENT of a larger message. * Managed by libgnunetfragment. */ #define GNUNET_MESSAGE_TYPE_FRAGMENT 18 - -/** - * Message from the core saying that the transport - * server should start giving it messages. This - * should automatically trigger the transmission of - * a HELLO message. - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_START 20 - -/** - * Message from TRANSPORT notifying about a - * client that connected to us. - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT 21 - -/** - * Message from TRANSPORT notifying about a - * client that disconnected from us. - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT 22 - -/** - * Request to TRANSPORT to transmit a message. - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND 23 - -/** - * Confirmation from TRANSPORT that message for - * transmission has been queued (and that the next - * message to this peer can now be passed to the - * service). Note that this confirmation does NOT - * imply that the message was fully transmitted. - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK 24 - -/** - * Message from TRANSPORT notifying about a - * message that was received. - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_RECV 25 - -/** - * Message telling transport to limit its receive rate. - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA 26 - -/** - * Request to look addresses of peers in server. - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP 27 - -/** - * Response to the address lookup request. - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY 28 - -/** - * Register a client that wants to do blacklisting. - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT 29 - -/** - * Query to a blacklisting client (is this peer blacklisted)? - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 30 - - /** - * Reply from blacklisting client (answer to blacklist query). + * Acknowledgement of a FRAGMENT of a larger message. + * Managed by libgnunetfragment. */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY 31 +#define GNUNET_MESSAGE_TYPE_FRAGMENT_ACK 19 -/** - * Transport PING message - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_PING 32 +/******************************************************************************* + * Transport-WLAN message types + ******************************************************************************/ /** - * Transport PONG message + * Type of data messages from the plugin to the gnunet-wlan-helper */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_PONG 33 +#define GNUNET_MESSAGE_TYPE_WLAN_DATA_TO_HELPER 39 /** - * Message for TRANSPORT asking that a connection - * be initiated with a peer. + * Type of data messages from the gnunet-wlan-helper to the plugin */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT 34 +#define GNUNET_MESSAGE_TYPE_WLAN_DATA_FROM_HELPER 40 /** - * Request update and listing of a peer. + * Control message between the gnunet-wlan-helper and the daemon (with the MAC). */ -#define GNUNET_MESSAGE_TYPE_PEERINFO_GET 37 +#define GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL 41 /** - * Request update and listing of all peers. + * Type of messages for advertisement over wlan */ -#define GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL 38 +#define GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT 42 /** - * Information about one of the peers. + * Type of messages for data over the wlan */ -#define GNUNET_MESSAGE_TYPE_PEERINFO_INFO 39 +#define GNUNET_MESSAGE_TYPE_WLAN_DATA 43 -/** - * End of information about other peers. - */ -#define GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END 40 -/** - * Start notifying this client about all changes to - * the known peers until it disconnects. - */ -#define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 41 +/******************************************************************************* + * Transport-DV message types + ******************************************************************************/ /** * DV service to DV Plugin message, when a message is @@ -256,52 +197,52 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_DV_DISCONNECT 50 -/** - * TCP NAT probe message, send from NAT'd peer to - * other peer to establish bi-directional communication - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE 51 +/******************************************************************************* + * Transport-UDP message types + ******************************************************************************/ /** * Normal UDP message type. */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE 52 +#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE 56 /** - * Fragmented part of a UDP message. + * UDP ACK. */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE_PART 53 +#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_ACK 57 -/** - * UDP NAT probe message, send from NAT'd peer to - * other peer to negotiate punched address/port - */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE 55 +/******************************************************************************* + * Transport-TCP message types + ******************************************************************************/ /** - * UDP NAT probe reply, sent from a non-NAT'd peer to - * a NAT'd one to inform it we got the probe and of the - * address/port seen + * TCP NAT probe message, send from NAT'd peer to + * other peer to establish bi-directional communication */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_REPLY 56 +#define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE 60 /** - * UDP NAT probe confirmation, sent from a NAT'd peer to - * a non-NAT'd one to inform it which port to send to us - * on + * Welcome message between TCP transports. */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_CONFIRM 57 +#define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME 61 /** - * UDP NAT probe keepalive, once a hole is punched the NAT'd peer - * needs to keep the hole alive + * Message to force transport to update bandwidth assignment (LEGACY) */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_NAT_PROBE_KEEPALIVE 58 +#define GNUNET_MESSAGE_TYPE_TRANSPORT_ATS 62 + +/******************************************************************************* + * NAT message types + ******************************************************************************/ /** - * Welcome message between TCP transports. + * Message to ask NAT server to perform traversal test */ -#define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME 60 +#define GNUNET_MESSAGE_TYPE_NAT_TEST 63 + +/******************************************************************************* + * CORE message types + ******************************************************************************/ /** * Initial setup message from core client to core. @@ -313,12 +254,6 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY 65 -/** - * Notify clients about new peer-to-peer connections (before - * key exchange and authentication). - */ -#define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_PRE_CONNECT 66 - /** * Notify clients about new peer-to-peer connections (triggered * after key exchange). @@ -345,17 +280,6 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND 71 -/** - * Request from client to "configure" P2P connection. - */ -#define GNUNET_MESSAGE_TYPE_CORE_REQUEST_INFO 72 - -/** - * Response from server about (possibly updated) P2P - * connection configuration. - */ -#define GNUNET_MESSAGE_TYPE_CORE_CONFIGURATION_INFO 73 - /** * Request from client to transmit message. */ @@ -372,10 +296,6 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_CORE_SEND 76 -/** - * Request from client asking to connect to a peer. - */ -#define GNUNET_MESSAGE_TYPE_CORE_REQUEST_CONNECT 77 /** * Request for peer iteration from CORE service. @@ -417,6 +337,20 @@ extern "C" */ #define GNUNET_MESSAGE_TYPE_CORE_HANGUP 85 +/** + * gzip-compressed type map of the sender + */ +#define GNUNET_MESSAGE_TYPE_CORE_COMPRESSED_TYPE_MAP 86 + +/** + * uncompressed type map of the sender + */ +#define GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP 87 + +/******************************************************************************* + * DATASTORE message types + ******************************************************************************/ + /** * Message sent by datastore client on join. */ @@ -483,6 +417,10 @@ extern "C" #define GNUNET_MESSAGE_TYPE_DATASTORE_DROP 103 +/******************************************************************************* + * FS message types + ******************************************************************************/ + /** * Message sent by fs client to start indexing. */ @@ -546,90 +484,84 @@ extern "C" #define GNUNET_MESSAGE_TYPE_FS_MIGRATION_STOP 139 -/** - * DHT Message Types - */ +/******************************************************************************* + * DHT message types + ******************************************************************************/ /** - * Local DHT route request type + * Client wants to store item in DHT. */ -#define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE 142 +#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT 142 /** - * Local generic DHT route result type + * Client wants to lookup item in DHT. */ -#define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_RESULT 143 +#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET 143 /** - * P2P DHT route request type + * Client wants to stop search in DHT. */ -#define GNUNET_MESSAGE_TYPE_DHT_P2P_ROUTE 144 +#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP 144 /** - * P2P DHT route result type + * Service returns result to client. */ -#define GNUNET_MESSAGE_TYPE_DHT_P2P_ROUTE_RESULT 145 +#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT 145 /** - * Local generic DHT message stop type + * Peer is storing data in DHT. */ -#define GNUNET_MESSAGE_TYPE_DHT_LOCAL_ROUTE_STOP 146 +#define GNUNET_MESSAGE_TYPE_DHT_P2P_PUT 146 /** - * Local and P2P DHT PUT message - * (encapsulated in DHT_ROUTE message) + * Peer tries to find data in DHT. */ -#define GNUNET_MESSAGE_TYPE_DHT_PUT 147 +#define GNUNET_MESSAGE_TYPE_DHT_P2P_GET 147 /** - * Local and P2P DHT GET message - * (encapsulated in DHT_ROUTE message) + * Data is returned to peer from DHT. */ -#define GNUNET_MESSAGE_TYPE_DHT_GET 148 +#define GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT 148 /** - * Local and P2P DHT Get result message + * Receive information about transiting GETs */ -#define GNUNET_MESSAGE_TYPE_DHT_GET_RESULT 149 +#define GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET 149 /** - * Local and P2P DHT find peer message + * Receive information about transiting GET responses */ -#define GNUNET_MESSAGE_TYPE_DHT_FIND_PEER 150 +#define GNUNET_MESSAGE_TYPE_DHT_MONITOR_GET_RESP 150 /** - * Local and P2P DHT find peer result message + * Receive information about transiting PUTs */ -#define GNUNET_MESSAGE_TYPE_DHT_FIND_PEER_RESULT 151 +#define GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT 151 /** - * P2P DHT PING request type + * Receive information about transiting PUT responses (TODO) */ -#define GNUNET_MESSAGE_TYPE_DHT_P2P_PING 152 +#define GNUNET_MESSAGE_TYPE_DHT_MONITOR_PUT_RESP 152 /** - * DHT Control message type, for telling the - * DHT to alter its current operation somehow. + * Request information about transiting messages */ -#define GNUNET_MESSAGE_TYPE_DHT_CONTROL 153 +#define GNUNET_MESSAGE_TYPE_DHT_MONITOR_START 153 /** - * Local control message type, tells peer to start - * issuing malicious GET requests. + * Stop information about transiting messages */ -#define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_GET 154 +#define GNUNET_MESSAGE_TYPE_DHT_MONITOR_STOP 154 /** - * Local control message type, tells peer to start - * issuing malicious PUT requests. + * Acknowledge receiving PUT request */ -#define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_PUT 155 +#define GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT_OK 155 -/** - * Local control message type, tells peer to start - * dropping all requests. - */ -#define GNUNET_MESSAGE_TYPE_DHT_MALICIOUS_DROP 156 + +/******************************************************************************* + * HOSTLIST message types + ******************************************************************************/ /** * Hostlist advertisement message @@ -637,6 +569,10 @@ extern "C" #define GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT 160 +/******************************************************************************* + * STATISTICS message types + ******************************************************************************/ + /** * Set a statistical value. */ @@ -669,160 +605,287 @@ extern "C" #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE 173 +/******************************************************************************* + * VPN message types + ******************************************************************************/ + /** * Type of messages between the gnunet-vpn-helper and the daemon */ #define GNUNET_MESSAGE_TYPE_VPN_HELPER 185 /** - * Type of messages containing an UDP packet for a service + * Type of messages containing an ICMP packet for a service. + */ +#define GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_SERVICE 190 + +/** + * Type of messages containing an ICMP packet for the Internet. */ -#define GNUNET_MESSAGE_TYPE_SERVICE_UDP 186 +#define GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_INTERNET 191 /** - * Type of messages containing an UDP packet from a service + * Type of messages containing an ICMP packet for the VPN */ -#define GNUNET_MESSAGE_TYPE_SERVICE_UDP_BACK 187 +#define GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_VPN 192 /** - * Type of messages containing an TCP packet for a service + * Type of messages containing an DNS request for a DNS exit service. */ -#define GNUNET_MESSAGE_TYPE_SERVICE_TCP 188 +#define GNUNET_MESSAGE_TYPE_VPN_DNS_TO_INTERNET 193 /** - * Type of messages containing an TCP packet from a service + * Type of messages containing an DNS reply from a DNS exit service. */ -#define GNUNET_MESSAGE_TYPE_SERVICE_TCP_BACK 189 +#define GNUNET_MESSAGE_TYPE_VPN_DNS_FROM_INTERNET 194 +/** + * Type of messages containing an TCP packet for a service. + */ +#define GNUNET_MESSAGE_TYPE_VPN_TCP_TO_SERVICE_START 195 /** - * Type of messages between the gnunet-wlan-helper and the daemon - * + * Type of messages containing an TCP packet for the Internet. */ +#define GNUNET_MESSAGE_TYPE_VPN_TCP_TO_INTERNET_START 196 -#define GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA 195 +/** + * Type of messages containing an TCP packet of an established connection. + */ +#define GNUNET_MESSAGE_TYPE_VPN_TCP_DATA_TO_EXIT 197 /** - * Control messages between the gnunet-wlan-helper and the daemon + * Type of messages containing an TCP packet of an established connection. */ +#define GNUNET_MESSAGE_TYPE_VPN_TCP_DATA_TO_VPN 198 -#define GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL 196 +/** + * Type of messages containing an UDP packet for a service. + */ +#define GNUNET_MESSAGE_TYPE_VPN_UDP_TO_SERVICE 199 /** - * Type of messages for advertisement over wlan + * Type of messages containing an UDP packet for the Internet. */ -#define GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT 197 +#define GNUNET_MESSAGE_TYPE_VPN_UDP_TO_INTERNET 200 /** - * Type of messages for data over the wlan + * Type of messages containing an UDP packet from a remote host */ +#define GNUNET_MESSAGE_TYPE_VPN_UDP_REPLY 201 -#define GNUNET_MESSAGE_TYPE_WLAN_DATA 198 /** - * Fragment of a message + * Client asks VPN service to setup an IP to redirect traffic + * via an exit node to some global IP address. */ +#define GNUNET_MESSAGE_TYPE_VPN_CLIENT_REDIRECT_TO_IP 202 -#define GNUNET_MESSAGE_TYPE_WLAN_FRAGMENT 199 +/** + * Client asks VPN service to setup an IP to redirect traffic + * to some peer offering a service. + */ +#define GNUNET_MESSAGE_TYPE_VPN_CLIENT_REDIRECT_TO_SERVICE 203 /** - * Fragment ack of a message + * VPN service responds to client with an IP to use for the + * requested redirection. */ +#define GNUNET_MESSAGE_TYPE_VPN_CLIENT_USE_IP 204 -#define GNUNET_MESSAGE_TYPE_WLAN_FRAGMENT_ACK 200 +/******************************************************************************* + * VPN-DNS message types + ******************************************************************************/ + + +/** + * Initial message from client to DNS service for registration. + */ +#define GNUNET_MESSAGE_TYPE_DNS_CLIENT_INIT 211 /** - * Type of messages to query the local service-dns + * Type of messages between the gnunet-helper-dns and the service */ -#define GNUNET_MESSAGE_TYPE_LOCAL_QUERY_DNS 205 +#define GNUNET_MESSAGE_TYPE_DNS_CLIENT_REQUEST 212 + /** - * Type of messages the local service-dns responds with + * Type of messages between the gnunet-helper-dns and the service */ -#define GNUNET_MESSAGE_TYPE_LOCAL_RESPONSE_DNS 206 +#define GNUNET_MESSAGE_TYPE_DNS_CLIENT_RESPONSE 213 + /** - * Type of messages to instruct the local service-dns to rehijack the dns + * Type of messages between the gnunet-helper-dns and the service */ -#define GNUNET_MESSAGE_TYPE_REHIJACK 207 +#define GNUNET_MESSAGE_TYPE_DNS_HELPER 214 +/******************************************************************************* + * MESH message types + ******************************************************************************/ + /** - * Type of message used to transport messages throug a MESH-tunnel + * Type of message used to transport messages throug a MESH-tunnel (LEGACY) */ #define GNUNET_MESSAGE_TYPE_MESH 215 /** * Type of message used to send another peer which messages we want to receive - * through a mesh-tunnel. + * through a mesh-tunnel (LEGACY) */ #define GNUNET_MESSAGE_TYPE_MESH_HELLO 216 - -/** - * MESH message types (WiP) - */ - /** * Request the creation of a path */ -#define GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE 256 +#define GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE 256 /** * Request the modification of an existing path */ -#define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGE 257 +#define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGE 257 /** - * Request the addition to a new branch to a path + * Notify that a connection of a path is no longer valid */ -#define GNUNET_MESSAGE_TYPE_MESH_PATH_ADD 258 +#define GNUNET_MESSAGE_TYPE_MESH_PATH_BROKEN 258 /** * At some point, the route will spontaneously change */ -#define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED 259 +#define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED 259 + +/** + * Transport data in the mesh (origin->end) unicast + */ +#define GNUNET_MESSAGE_TYPE_MESH_UNICAST 260 /** - * Transport data in the mesh (origin->end) + * Transport data to all peers in a tunnel */ -#define GNUNET_MESSAGE_TYPE_MESH_DATA_GO 260 +#define GNUNET_MESSAGE_TYPE_MESH_MULTICAST 261 /** * Transport data back in the mesh (end->origin) - * (not sure if this is the right way, should be some other solution) */ -#define GNUNET_MESSAGE_TYPE_MESH_DATA_BACK 261 +#define GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN 262 + +/** + * Send origin an ACK that the path is complete + */ +#define GNUNET_MESSAGE_TYPE_MESH_PATH_ACK 263 /** - * We need flow control + * Avoid path timeouts */ -#define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY 262 +#define GNUNET_MESSAGE_TYPE_MESH_PATH_KEEPALIVE 264 -/* FIXME: Document */ -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT 272 -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_ANY 273 -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_ALL 274 -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_ADD 275 -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_DEL 276 -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_BY_TYPE 277 -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT_PEER_CANCEL 278 -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TRANSMIT_READY 279 -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATED 280 -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROYED 281 -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA 282 -#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA_BROADCAST 283 +/** + * Request the destuction of a path + */ +#define GNUNET_MESSAGE_TYPE_MESH_PATH_DESTROY 265 /** - * 640kb should be enough for everybody + * Request the destruction of a whole tunnel + */ +#define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY 266 + +/** + * ACK for a data packet. + */ +#define GNUNET_MESSAGE_TYPE_MESH_ACK 267 + +/** + * Poll for an ACK. + */ +#define GNUNET_MESSAGE_TYPE_MESH_POLL 268 + +/** + * Connect to the mesh service, specifying subscriptions + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT 272 + +/** + * Ask the mesh service to create a new tunnel + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE 273 + +/** + * Ask the mesh service to destroy a tunnel + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY 274 + +/** + * Ask the mesh service to add a peer to an existing tunnel + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD 275 + +/** + * Ask the mesh service to remove a peer from a tunnel + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_DEL 276 + +/** + * Ask the mesh service to add a peer offering a service to an existing tunnel + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD_BY_TYPE 277 + +/** + * Ask the mesh service to add a peer described by a service string + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_ANNOUNCE_REGEX 278 + +/** + * Ask the mesh service to add a peer described by a service string + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD_BY_STRING 279 + +/** + * Ask the mesh service to add a peer to the blacklist of an existing tunnel + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_BLACKLIST 280 + +/** + * Ask the mesh service to remove a peer from the blacklist of a tunnel + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_UNBLACKLIST 281 + +/** + * Set tunnel speed to slowest peer + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_MIN 282 + +/** + * Set tunnel speed to fastest peer + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_MAX 283 + +/** + * Set tunnel buffering on. + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_BUFFER 284 + +/** + * Set tunnel buffering off. */ -#define GNUNET_MESSAGE_TYPE_MESH_RESERVE_END 288 +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_NOBUFFER 285 /** - * MESH message types END + * Local ACK for data. + */ +#define GNUNET_MESSAGE_TYPE_MESH_LOCAL_ACK 286 + +/** + * 640kb should be enough for everybody */ +#define GNUNET_MESSAGE_TYPE_MESH_RESERVE_END 299 +/******************************************************************************* + * CHAT message types START + ******************************************************************************/ + /** * Message sent from client to join a chat room. */ @@ -889,46 +952,654 @@ extern "C" #define GNUNET_MESSAGE_TYPE_CHAT_P2P_CONFIRMATION_RECEIPT 311 +/******************************************************************************* + * NSE (network size estimation) message types + ******************************************************************************/ + /** - * Type used to match 'all' message types. + * client->service message indicating start */ -#define GNUNET_MESSAGE_TYPE_ALL 65535 +#define GNUNET_MESSAGE_TYPE_NSE_START 321 -/* - TODO: - - applications (FS, VPN, TRACEKIT, TBENCH) -*/ +/** + * P2P message sent from nearest peer + */ +#define GNUNET_MESSAGE_TYPE_NSE_P2P_FLOOD 322 + +/** + * service->client message indicating + */ +#define GNUNET_MESSAGE_TYPE_NSE_ESTIMATE 323 + + +/******************************************************************************* + * PEERINFO message types + ******************************************************************************/ + +/** + * Request update and listing of a peer. + */ +#define GNUNET_MESSAGE_TYPE_PEERINFO_GET 330 + +/** + * Request update and listing of all peers. + */ +#define GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL 331 + +/** + * Information about one of the peers. + */ +#define GNUNET_MESSAGE_TYPE_PEERINFO_INFO 332 + +/** + * End of information about other peers. + */ +#define GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END 333 + +/** + * Start notifying this client about all changes to + * the known peers until it disconnects. + */ +#define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 334 + +/******************************************************************************* + * ATS message types + ******************************************************************************/ + +/** + * Type of the 'struct ClientStartMessage' sent by clients to ATS to + * identify the type of the client. + */ +#define GNUNET_MESSAGE_TYPE_ATS_START 340 + +/** + * Type of the 'struct RequestAddressMessage' sent by clients to ATS + * to request an address to help connect. + */ +#define GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS 341 +/** + * Type of the 'struct RequestAddressMessage' sent by clients to ATS + * to request an address to help connect. + */ +#define GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS_CANCEL 342 +/** + * Type of the 'struct AddressUpdateMessage' sent by clients to ATS + * to inform ATS about performance changes. + */ +#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_UPDATE 343 +/** + * Type of the 'struct AddressDestroyedMessage' sent by clients to ATS + * to inform ATS about an address being unavailable. + */ +#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_DESTROYED 344 -/* BELOW: experimental student-DHT protocol codes */ +/** + * Type of the 'struct AddressSuggestionMessage' sent by ATS to clients + * to suggest switching to a different address. + */ +#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION 345 /** - * Request to join a CAN DHT + * Type of the 'struct PeerInformationMessage' sent by ATS to clients + * to inform about QoS for a particular connection. */ -#define GNUNET_MESSAGE_TYPE_DHT_CAN_JOIN_REQUEST 1174 +#define GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION 346 /** - * Response to join request of a CAN DHT + * Type of the 'struct ReservationRequestMessage' sent by clients to ATS + * to ask for inbound bandwidth reservations. */ -#define GNUNET_MESSAGE_TYPE_DHT_CAN_JOIN_REPLY 1175 +#define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_REQUEST 347 /** - * Messages for swapping locations + * Type of the 'struct ReservationResultMessage' sent by ATS to clients + * in response to a reservation request. */ -#define GNUNET_MESSAGE_TYPE_DHT_GET_NEIGHBOURLIST_REQUEST 1180 +#define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_RESULT 348 -#define GNUNET_MESSAGE_TYPE_DHT_GET_NEIGHBOURLIST_RESULT 1181 +/** + * Type of the 'struct ChangePreferenceMessage' sent by clients to ATS + * to ask for allocation preference changes. + */ +#define GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_CHANGE 349 -#define GNUNET_MESSAGE_TYPE_DHT_SWAP_LOCATION_REQUEST 1182 +/** + * Type of the 'struct SessionReleaseMessage' sent by ATS to client + * to confirm that a session ID was destroyed. + */ +#define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 350 -#define GNUNET_MESSAGE_TYPE_DHT_SWAP_LOCATION_ACK 1183 +/** + * Type of the 'struct AddressUseMessage' sent by ATS to client + * to confirm that an address is used or not used anymore + */ +#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_IN_USE 351 /** - * Freenet hello message + * Type of the 'struct AddressUseMessage' sent by ATS to client + * to confirm that an address is used or not used anymore */ -#define GNUNET_MESSAGE_TYPE_DHT_FREENET_HELLO 1184 +#define GNUNET_MESSAGE_TYPE_ATS_RESET_BACKOFF 352 + +/** + * Type of the 'struct AddressUpdateMessage' sent by client to ATS + * to add a new address + */ +#define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_ADD 353 + +/******************************************************************************* + * TRANSPORT message types + ******************************************************************************/ + +/** + * Message from the core saying that the transport + * server should start giving it messages. This + * should automatically trigger the transmission of + * a HELLO message. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_START 360 + +/** + * Message from TRANSPORT notifying about a + * client that connected to us. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT 361 + +/** + * Message from TRANSPORT notifying about a + * client that disconnected from us. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT 362 + +/** + * Request to TRANSPORT to transmit a message. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND 363 + +/** + * Confirmation from TRANSPORT that message for transmission has been + * queued (and that the next message to this peer can now be passed to + * the service). Note that this confirmation does NOT imply that the + * message was fully transmitted. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK 364 + +/** + * Message from TRANSPORT notifying about a + * message that was received. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_RECV 365 + +/** + * Message telling transport to limit its receive rate. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA 366 + +/** + * Request to look addresses of peers in server. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING 367 + +/** + * Response to the address lookup request. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_TO_STRING_REPLY 368 + +/** + * Register a client that wants to do blacklisting. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT 369 + +/** + * Query to a blacklisting client (is this peer blacklisted)? + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 370 + +/** + * Reply from blacklisting client (answer to blacklist query). + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY 371 + +/** + * Transport PING message + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_PING 372 + +/** + * Transport PONG message + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_PONG 373 + +/** + * Message for transport service from a client asking that a + * connection be initiated with another peer. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT 374 + +/** + * Transport CONNECT message exchanged between transport services to + * indicate that a session should be marked as 'connected'. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT 375 + +/** + * Transport CONNECT_ACK message exchanged between transport services to + * indicate that a CONNECT message was accepted + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT_ACK 376 + +/** + * Transport CONNECT_ACK message exchanged between transport services to + * indicate that a CONNECT message was accepted + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_ACK 377 + +/** + * Transport DISCONNECT message exchanged between transport services to + * indicate that a connection should be dropped. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT 378 + +/** + * Request to monitor addresses used by a peer or all peers. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE 380 + +/** + * Message send by a peer to notify the other to keep the session alive + * and measure latency in a regular interval + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE 381 + +/** + * Response to a GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE message to + * measure latency in a regular interval + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE_RESPONSE 382 + + +/** + * Request to iterate over all known addresses. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE_RESPONSE 383 + +/** + * Message send by a peer to notify the other to keep the session alive. + */ +#define GNUNET_MESSAGE_TYPE_TRANSPORT_BROADCAST_BEACON 384 + +/******************************************************************************* + * STREAM messages types + ******************************************************************************/ + +/** + * Message containing data exchanged between stream end-points over mesh. + */ +#define GNUNET_MESSAGE_TYPE_STREAM_DATA 400 + +/** + * ACK message + */ +#define GNUNET_MESSAGE_TYPE_STREAM_ACK 401 + +/** + * Handshake hello message + */ +#define GNUNET_MESSAGE_TYPE_STREAM_HELLO 402 + +/** + * Handshake hello acknowledgement message + */ +#define GNUNET_MESSAGE_TYPE_STREAM_HELLO_ACK 403 + +/** + * Reset message + */ +#define GNUNET_MESSAGE_TYPE_STREAM_RESET 404 + +/** + * Transmit close message (data transmission no longer possible after this + * message) + */ +#define GNUNET_MESSAGE_TYPE_STREAM_TRANSMIT_CLOSE 405 + +/** + * Transmit close acknowledgement message + */ +#define GNUNET_MESSAGE_TYPE_STREAM_TRANSMIT_CLOSE_ACK 406 + +/** + * Receive close message (data is no loger read by the receiver after this + * message) + */ +#define GNUNET_MESSAGE_TYPE_STREAM_RECEIVE_CLOSE 407 + +/** + * Receive close acknowledgement message + */ +#define GNUNET_MESSAGE_TYPE_STREAM_RECEIVE_CLOSE_ACK 408 + +/** + * Stream close message (data is no longer sent or read after this message) + */ +#define GNUNET_MESSAGE_TYPE_STREAM_CLOSE 409 + +/** + * Close acknowledgement message + */ +#define GNUNET_MESSAGE_TYPE_STREAM_CLOSE_ACK 410 + +/******************************************************************************* + * FS-PUBLISH-HELPER IPC Messages + ******************************************************************************/ + +/** + * Progress information from the helper: found a file + */ +#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_FILE 420 + +/** + * Progress information from the helper: found a directory + */ +#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_DIRECTORY 421 + +/** + * Error signal from the helper. + */ +#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_ERROR 422 + +/** + * Signal that helper skipped a file. + */ +#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_SKIP_FILE 423 + +/** + * Signal that helper is done scanning the directory tree. + */ +#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_COUNTING_DONE 424 + +/** + * Extracted meta data from the helper. + */ +#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_META_DATA 425 + +/** + * Signal that helper is done. + */ +#define GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_FINISHED 426 + + +/******************************************************************************* + * NAMESTORE message types + ******************************************************************************/ + +/** + * Client to service: register. + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_START 430 + +/** + * Client to service: lookup name + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_LOOKUP_NAME 431 + +/** + * Service to client: result of name lookup + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_LOOKUP_NAME_RESPONSE 432 + +/** + * Client to service: put records (for caching) + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_PUT 433 + +/** + * Service to client: result of put operation. + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_PUT_RESPONSE 434 + +/** + * Client to service: create record as authority + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_CREATE 435 + +/** + * Service to client: result of record creation request + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_CREATE_RESPONSE 436 + +/** + * Client to service: remove record(s) + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_REMOVE 437 + +/** + * Service to client: result of removal request. + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_RECORD_REMOVE_RESPONSE 438 + +/** + * Client to service: "reverse" lookup for zone name based on zone key + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME 439 + +/** + * Service to client: result of zone-to-name lookup. + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_TO_NAME_RESPONSE 440 + +/** + * Client to service: please start iteration + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_START 445 + +/** + * Service to client: current record in iteration (or end of list). + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_RESPONSE 446 + +/** + * Client to service: next record in iteration please. + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_NEXT 447 + +/** + * Client to service: stop iterating. + */ +#define GNUNET_MESSAGE_TYPE_NAMESTORE_ZONE_ITERATION_STOP 448 + + +/******************************************************************************* + * LOCKMANAGER message types + ******************************************************************************/ + +/** + * Message to acquire Lock + */ +#define GNUNET_MESSAGE_TYPE_LOCKMANAGER_ACQUIRE 450 + +/** + * Message to release lock + */ +#define GNUNET_MESSAGE_TYPE_LOCKMANAGER_RELEASE 451 + +/** + * SUCESS reply from lockmanager + */ +#define GNUNET_MESSAGE_TYPE_LOCKMANAGER_SUCCESS 452 + +/******************************************************************************* + * TESTBED message types + ******************************************************************************/ + +/** + * Initial message from a client to a testing control service + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_INIT 460 + +/** + * Message to add host + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_ADDHOST 461 + +/** + * Message to signal that a add host succeeded + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_ADDHOSTCONFIRM 462 + +/** + * Message to configure a service to be shared among peers + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_SERVICESHARE 463 + +/** + * Message to link delegated controller to slave controller + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_LCONTROLLERS 464 + +/** + * Message to create a peer at a host + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_CREATEPEER 465 + +/** + * Message to reconfigure a peer + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_PEERRECONF 466 + +/** + * Message to start a peer at a host + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_STARTPEER 467 + +/** + * Message to stop a peer at a host + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_STOPPEER 468 + +/** + * Message to destroy a peer + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_DESTROYPEER 469 + +/** + * Configure underlay link message + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_CONFIGULLINK 470 + +/** + * Message to connect peers in a overlay + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_OLCONNECT 471 + +/** + * Message for peer events + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_PEEREVENT 472 + +/** + * Message for peer connect events + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_PEERCONEVENT 473 + +/** + * Message for operation events + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_OPERATIONFAILEVENT 474 + +/** + * Message to signal successful peer creation + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_PEERCREATESUCCESS 475 + +/** + * Message to signal a generic operation has been successful + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_GENERICOPSUCCESS 476 + +/** + * Message to get the configuration of a peer + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_GETPEERCONFIG 477 + +/** + * Message containing the peer configuration + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_PEERCONFIG 478 + +/** + * Message to request a controller to make one of its peer to connect to another + * peer using the contained HELLO + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_REQUESTCONNECT 479 + +/** + * Message to cancel a REQUESTCONNECT request + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_REQUESTCONNECTCANCEL 480 + +/** + * Message to request configuration of a slave controller + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_GETSLAVECONFIG 481 + +/** + * Message which contains the configuration of slave controller + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_SLAVECONFIG 482 + +/** + * Not really a message, but for careful checks on the testbed messages; Should + * always be the maximum and never be used to send messages with this type + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_MAX 483 + +/** + * The initialization message towards gnunet-testbed-helper + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_HELPER_INIT 495 + +/** + * The reply message from gnunet-testbed-helper + */ +#define GNUNET_MESSAGE_TYPE_TESTBED_HELPER_REPLY 496 + + +/** + * GNS. FIXME: document! + */ +#define GNUNET_MESSAGE_TYPE_GNS_LOOKUP 500 + +#define GNUNET_MESSAGE_TYPE_GNS_LOOKUP_RESULT 501 + +#define GNUNET_MESSAGE_TYPE_GNS_SHORTEN 502 + +#define GNUNET_MESSAGE_TYPE_GNS_SHORTEN_RESULT 503 + +#define GNUNET_MESSAGE_TYPE_GNS_GET_AUTH 504 + +#define GNUNET_MESSAGE_TYPE_GNS_GET_AUTH_RESULT 505 + + +/** + * Next available: 520 + */ + + +/******************************************************************************* + * TODO: we need a way to register message types centrally (via some webpage). + * For now: unofficial extensions should start at 48k, internal extensions + * define here should leave some room (4-10 additional messages to the previous + * extension). + ******************************************************************************/ + +/** + * Type used to match 'all' message types. + */ +#define GNUNET_MESSAGE_TYPE_ALL 65535 #if 0 /* keep Emacsens' auto-indent happy */