#endif
#endif
+/*******************************************************************************
+ * UTIL message types
+ ******************************************************************************/
+
/**
* Test if service is online.
*/
#define GNUNET_MESSAGE_TYPE_TEST 1
+/*******************************************************************************
+ * 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.
*/
#define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN_ACK 14
+/*******************************************************************************
+ * HELLO message types
+ ******************************************************************************/
+
/**
* HELLO message used for communicating peer addresses.
* Managed by libgnunethello.
*/
#define GNUNET_MESSAGE_TYPE_HELLO 16
+/*******************************************************************************
+ * FRAGMENTATION message types
+ ******************************************************************************/
+
/**
* FRAGMENT of a larger message.
* Managed by libgnunetfragment.
*/
#define GNUNET_MESSAGE_TYPE_FRAGMENT_ACK 19
+/*******************************************************************************
+ * TRANSPORT message types
+ ******************************************************************************/
+
/**
* Message from the core saying that the transport
* server should start giving it messages. This
#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.
+ * 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
*/
#define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 30
-
/**
* Reply from blacklisting client (answer to blacklist query).
*/
*/
#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT 36
+/**
+ * Request to look up addresses of peers.
+ */
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_PEER_ADDRESS_LOOKUP 37
+/**
+ * Request to iterate over all known addresses.
+ */
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE 38
/**
- * Request update and listing of a peer.
+ * Message send by a peer to notify the other to keep the session alive.
*/
-#define GNUNET_MESSAGE_TYPE_PEERINFO_GET 37
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE 39
+
+/*******************************************************************************
+ * Transport-WLAN message types
+ ******************************************************************************/
/**
- * Request update and listing of all peers.
+ * Type of messages between the gnunet-wlan-helper and the daemon
+ *
*/
-#define GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL 38
+#define GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA 40
/**
- * Information about one of the peers.
+ * Control messages between the gnunet-wlan-helper and the daemon
*/
-#define GNUNET_MESSAGE_TYPE_PEERINFO_INFO 39
+
+#define GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL 41
/**
- * End of information about other peers.
+ * Type of messages for advertisement over wlan
*/
-#define GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END 40
+#define GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT 42
/**
- * Start notifying this client about all changes to
- * the known peers until it disconnects.
+ * Type of messages for data over the wlan
*/
-#define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 41
+#define GNUNET_MESSAGE_TYPE_WLAN_DATA 43
+
+
+/*******************************************************************************
+ * Transport-DV message types
+ ******************************************************************************/
/**
* DV service to DV Plugin message, when a message is
*/
#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
/**
* UDP ACK.
*/
-#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_ACK 53
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_ACK 57
-/**
- * Request to look up addresses of peers.
- */
-#define GNUNET_MESSAGE_TYPE_TRANSPORT_PEER_ADDRESS_LOOKUP 59
+/*******************************************************************************
+ * Transport-TCP message types
+ ******************************************************************************/
/**
- * Request to iterate over all known addresses.
+ * TCP NAT probe message, send from NAT'd peer to
+ * other peer to establish bi-directional communication
*/
-#define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE 60
+#define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE 60
/**
* Welcome message between TCP transports.
#define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME 61
/**
- * Message to force transport to update bandwidth assignment
+ * Message to force transport to update bandwidth assignment (LEGACY)
*/
#define GNUNET_MESSAGE_TYPE_TRANSPORT_ATS 62
+/*******************************************************************************
+ * NAT message types
+ ******************************************************************************/
+
/**
* Message to ask NAT server to perform traversal test
*/
#define GNUNET_MESSAGE_TYPE_NAT_TEST 63
+/*******************************************************************************
+ * CORE message types
+ ******************************************************************************/
+
/**
* Initial setup message from core client to core.
*/
*/
#define GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP 87
+/*******************************************************************************
+ * DATASTORE message types
+ ******************************************************************************/
+
/**
* Message sent by datastore client on join.
*/
#define GNUNET_MESSAGE_TYPE_DATASTORE_DROP 103
+/*******************************************************************************
+ * FS message types
+ ******************************************************************************/
+
/**
* Message sent by fs client to start indexing.
*/
#define GNUNET_MESSAGE_TYPE_FS_MIGRATION_STOP 139
-/**
- * DHT Message Types
- */
+/*******************************************************************************
+ * DHT message types
+ ******************************************************************************/
/**
* Local DHT route request type
#define GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT 160
+/*******************************************************************************
+ * STATISTICS message types
+ ******************************************************************************/
+
/**
* Set a statistical value.
*/
#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_REMOTE_TCP_BACK 193
-/**
- * Type of messages between the gnunet-wlan-helper and the daemon
- *
- */
-
-#define GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA 195
-
-/**
- * Control messages between the gnunet-wlan-helper and the daemon
- */
-
-#define GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL 196
-
-/**
- * Type of messages for advertisement over wlan
- */
-#define GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT 197
-
-/**
- * Type of messages for data over the wlan
- */
-
-#define GNUNET_MESSAGE_TYPE_WLAN_DATA 198
-
-/**
- * Fragment of a message
- */
-
-#define GNUNET_MESSAGE_TYPE_WLAN_FRAGMENT 199
-
-/**
- * Fragment ack of a message
- */
-
-#define GNUNET_MESSAGE_TYPE_WLAN_FRAGMENT_ACK 200
-
+/*******************************************************************************
+ * VPN-DNS message types
+ ******************************************************************************/
/**
* Type of messages to query the local service-dns
#define GNUNET_MESSAGE_TYPE_REMOTE_ANSWER_DNS 209
+
+/*******************************************************************************
+ * 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 START (WiP)
- ******************************************************************************/
-
/**
* Request the creation of a path
*/
*/
#define GNUNET_MESSAGE_TYPE_MESH_RESERVE_END 288
-/*******************************************************************************
- * MESH message types END
- ******************************************************************************/
-
/*******************************************************************************
*/
#define GNUNET_MESSAGE_TYPE_CHAT_P2P_CONFIRMATION_RECEIPT 311
-/*******************************************************************************
- * CHAT message types END
- ******************************************************************************/
/*******************************************************************************
- * NSE (network size estimation) message types START
+ * NSE (network size estimation) message types
******************************************************************************/
/**
*/
#define GNUNET_MESSAGE_TYPE_NSE_ESTIMATE 323
-/**
- * Type used to match 'all' message types.
- */
-#define GNUNET_MESSAGE_TYPE_ALL 65535
-
-/*
- TODO:
- - applications (FS, VPN, TRACEKIT, TBENCH)
-*/
-
-
+/*******************************************************************************
+ * PEERINFO message types
+ ******************************************************************************/
-/* BELOW: experimental student-DHT protocol codes */
+/**
+ * Request update and listing of a peer.
+ */
+#define GNUNET_MESSAGE_TYPE_PEERINFO_GET 330
/**
- * Request to join a CAN DHT
+ * Request update and listing of all peers.
*/
-#define GNUNET_MESSAGE_TYPE_DHT_CAN_JOIN_REQUEST 1174
+#define GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL 331
/**
- * Response to join request of a CAN DHT
+ * Information about one of the peers.
*/
-#define GNUNET_MESSAGE_TYPE_DHT_CAN_JOIN_REPLY 1175
+#define GNUNET_MESSAGE_TYPE_PEERINFO_INFO 332
/**
- * Messages for swapping locations
+ * End of information about other peers.
*/
-#define GNUNET_MESSAGE_TYPE_DHT_GET_NEIGHBOURLIST_REQUEST 1180
+#define GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END 333
-#define GNUNET_MESSAGE_TYPE_DHT_GET_NEIGHBOURLIST_RESULT 1181
+/**
+ * Start notifying this client about all changes to
+ * the known peers until it disconnects.
+ */
+#define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 334
-#define GNUNET_MESSAGE_TYPE_DHT_SWAP_LOCATION_REQUEST 1182
-#define GNUNET_MESSAGE_TYPE_DHT_SWAP_LOCATION_ACK 1183
/**
- * Freenet hello message
+ * Type used to match 'all' message types.
*/
-#define GNUNET_MESSAGE_TYPE_DHT_FREENET_HELLO 1184
+#define GNUNET_MESSAGE_TYPE_ALL 65535
#if 0 /* keep Emacsens' auto-indent happy */