dummy
[oweals/gnunet.git] / src / include / gnunet_protocols.h
1 /*
2      This file is part of GNUnet.
3      (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2009, 2010 Christian Grothoff (and other contributing authors)
4
5      GNUnet is free software; you can redistribute it and/or modify
6      it under the terms of the GNU General Public License as published
7      by the Free Software Foundation; either version 2, or (at your
8      option) any later version.
9
10      GNUnet is distributed in the hope that it will be useful, but
11      WITHOUT ANY WARRANTY; without even the implied warranty of
12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13      General Public License for more details.
14
15      You should have received a copy of the GNU General Public License
16      along with GNUnet; see the file COPYING.  If not, write to the
17      Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18      Boston, MA 02111-1307, USA.
19 */
20
21 /**
22  * @file include/gnunet_protocols.h
23  * @brief constants for network protocols
24  * @author Christian Grothoff
25  */
26
27 #ifndef GNUNET_PROTOCOLS_H
28 #define GNUNET_PROTOCOLS_H
29
30 #ifdef __cplusplus
31 extern "C"
32 {
33 #if 0                           /* keep Emacsens' auto-indent happy */
34 }
35 #endif
36 #endif
37
38 /*******************************************************************************
39  * UTIL message types
40  ******************************************************************************/
41
42 /**
43  * Test if service is online.
44  */
45 #define GNUNET_MESSAGE_TYPE_TEST 1
46
47 /**
48  * Dummy messages for testing / benchmarking.
49  */
50 #define GNUNET_MESSAGE_TYPE_DUMMY 2
51
52 /*******************************************************************************
53  * RESOLVER message types
54  ******************************************************************************/
55
56 /**
57  * Request DNS resolution.
58  */
59 #define GNUNET_MESSAGE_TYPE_RESOLVER_REQUEST 4
60
61 /**
62  * Response to a DNS resolution request.
63  */
64 #define GNUNET_MESSAGE_TYPE_RESOLVER_RESPONSE 5
65
66 /*******************************************************************************
67  * ARM message types
68  ******************************************************************************/
69
70 /**
71  * Request to ARM to start a service.
72  */
73 #define GNUNET_MESSAGE_TYPE_ARM_START 8
74
75 /**
76  * Request to ARM to stop a service.
77  */
78 #define GNUNET_MESSAGE_TYPE_ARM_STOP 9
79
80 /**
81  * Response from ARM: service is now up.
82  */
83 #define GNUNET_MESSAGE_TYPE_ARM_IS_UP 10
84
85 /**
86  * Response from ARM: service is now down.
87  * (failed to start it or shut it down).
88  */
89 #define GNUNET_MESSAGE_TYPE_ARM_IS_DOWN 11
90
91 /**
92  * Response from ARM: service status is unknown.
93  */
94 #define GNUNET_MESSAGE_TYPE_ARM_IS_UNKNOWN 12
95
96 /**
97  * Request ARM service shutdown.
98  */
99 #define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN 13
100
101 /**
102  * Acknowledge service shutting down, disconnect
103  * indicates service stopped.
104  */
105 #define GNUNET_MESSAGE_TYPE_ARM_SHUTDOWN_ACK 14
106
107 /*******************************************************************************
108  * HELLO message types
109  ******************************************************************************/
110
111 /**
112  * HELLO message used for communicating peer addresses.
113  * Managed by libgnunethello.
114  */
115 #define GNUNET_MESSAGE_TYPE_HELLO 16
116
117 /*******************************************************************************
118  * FRAGMENTATION message types
119  ******************************************************************************/
120
121 /**
122  * FRAGMENT of a larger message.
123  * Managed by libgnunetfragment.
124  */
125 #define GNUNET_MESSAGE_TYPE_FRAGMENT 18
126
127 /**
128  * Acknowledgement of a FRAGMENT of a larger message.
129  * Managed by libgnunetfragment.
130  */
131 #define GNUNET_MESSAGE_TYPE_FRAGMENT_ACK 19
132
133 /*******************************************************************************
134  * TRANSPORT message types
135  ******************************************************************************/
136
137 /**
138  * Message from the core saying that the transport
139  * server should start giving it messages.  This
140  * should automatically trigger the transmission of
141  * a HELLO message.
142  */
143 #define GNUNET_MESSAGE_TYPE_TRANSPORT_START 20
144
145 /**
146  * Message from TRANSPORT notifying about a
147  * client that connected to us.
148  */
149 #define GNUNET_MESSAGE_TYPE_TRANSPORT_CONNECT 21
150
151 /**
152  * Message from TRANSPORT notifying about a
153  * client that disconnected from us.
154  */
155 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DISCONNECT 22
156
157 /**
158  * Request to TRANSPORT to transmit a message.
159  */
160 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND 23
161
162 /**
163  * Confirmation from TRANSPORT that message for transmission has been
164  * queued (and that the next message to this peer can now be passed to
165  * the service).  Note that this confirmation does NOT imply that the
166  * message was fully transmitted.
167  */
168 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SEND_OK 24
169
170 /**
171  * Message from TRANSPORT notifying about a
172  * message that was received.
173  */
174 #define GNUNET_MESSAGE_TYPE_TRANSPORT_RECV 25
175
176 /**
177  * Message telling transport to limit its receive rate.
178  */
179 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SET_QUOTA 26
180
181 /**
182  * Request to look addresses of peers in server.
183  */
184 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_LOOKUP 27
185
186 /**
187  * Response to the address lookup request.
188  */
189 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_REPLY 28
190
191 /**
192  * Register a client that wants to do blacklisting.
193  */
194 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_INIT 29
195
196 /**
197  * Query to a blacklisting client (is this peer blacklisted)?
198  */
199 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_QUERY 30
200
201 /**
202  * Reply from blacklisting client (answer to blacklist query).
203  */
204 #define GNUNET_MESSAGE_TYPE_TRANSPORT_BLACKLIST_REPLY 31
205
206 /**
207  * Transport PING message
208  */
209 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PING 32
210
211 /**
212  * Transport PONG message
213  */
214 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PONG 33
215
216 /**
217  * Message for transport service from a client asking that a
218  * connection be initiated with another peer.
219  */
220 #define GNUNET_MESSAGE_TYPE_TRANSPORT_REQUEST_CONNECT 34
221
222 /**
223  * Transport CONNECT message exchanged between transport services to
224  * indicate that a session should be marked as 'connected'.
225  */
226 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_CONNECT 35
227
228 /**
229  * Transport DISCONNECT message exchanged between transport services to
230  * indicate that a connection should be dropped.
231  */
232 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT 36
233
234 /**
235  * Request to look up addresses of peers.
236  */
237 #define GNUNET_MESSAGE_TYPE_TRANSPORT_PEER_ADDRESS_LOOKUP 37
238
239 /**
240  * Request to iterate over all known addresses.
241  */
242 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_ITERATE 38
243
244 /**
245  * Message send by a peer to notify the other to keep the session alive.
246  */
247 #define GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE 39
248
249 /*******************************************************************************
250  * Transport-WLAN message types
251  ******************************************************************************/
252
253 /**
254  * Type of messages between the gnunet-wlan-helper and the daemon
255  *
256  */
257 #define GNUNET_MESSAGE_TYPE_WLAN_HELPER_DATA 40
258
259 /**
260  * Control messages between the gnunet-wlan-helper and the daemon
261  */
262
263 #define GNUNET_MESSAGE_TYPE_WLAN_HELPER_CONTROL 41
264
265 /**
266  * Type of messages for advertisement over wlan
267  */
268 #define GNUNET_MESSAGE_TYPE_WLAN_ADVERTISEMENT 42
269
270 /**
271  * Type of messages for data over the wlan
272  */
273 #define GNUNET_MESSAGE_TYPE_WLAN_DATA 43
274
275
276 /*******************************************************************************
277  * Transport-DV message types
278  ******************************************************************************/
279
280 /**
281  * DV service to DV Plugin message, when a message is
282  * unwrapped by the DV service and handed to the plugin
283  * for processing
284  */
285 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_RECEIVE 44
286
287 /**
288  * DV Plugin to DV service message, indicating a message
289  * should be sent out.
290  */
291 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND 45
292
293 /**
294  * DV service to DV api message, containing a confirmation
295  * or failure of a DV_SEND message.
296  */
297 #define GNUNET_MESSAGE_TYPE_TRANSPORT_DV_SEND_RESULT 46
298
299 /**
300  * P2P DV message encapsulating some real message
301  */
302 #define GNUNET_MESSAGE_TYPE_DV_DATA 47
303
304 /**
305  * P2P DV message gossipping peer information
306  */
307 #define GNUNET_MESSAGE_TYPE_DV_GOSSIP 48
308
309 /**
310  * DV Plugin to DV service message, indicating
311  * startup.
312  */
313 #define GNUNET_MESSAGE_TYPE_DV_START 49
314
315 /**
316  * P2P DV message notifying connected peers of a disconnect
317  */
318 #define GNUNET_MESSAGE_TYPE_DV_DISCONNECT 50
319
320 /*******************************************************************************
321  * Transport-UDP message types
322  ******************************************************************************/
323
324 /**
325  * Normal UDP message type.
326  */
327 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_MESSAGE 56
328
329 /**
330  * UDP ACK.
331  */
332 #define GNUNET_MESSAGE_TYPE_TRANSPORT_UDP_ACK 57
333
334 /*******************************************************************************
335  * Transport-TCP message types
336  ******************************************************************************/
337
338 /**
339  * TCP NAT probe message, send from NAT'd peer to
340  * other peer to establish bi-directional communication
341  */
342 #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_NAT_PROBE 60
343
344 /**
345  * Welcome message between TCP transports.
346  */
347 #define GNUNET_MESSAGE_TYPE_TRANSPORT_TCP_WELCOME 61
348
349 /**
350  * Message to force transport to update bandwidth assignment (LEGACY)
351  */
352 #define GNUNET_MESSAGE_TYPE_TRANSPORT_ATS 62
353
354 /*******************************************************************************
355  * NAT message types
356  ******************************************************************************/
357
358 /**
359  * Message to ask NAT server to perform traversal test
360  */
361 #define GNUNET_MESSAGE_TYPE_NAT_TEST 63
362
363 /*******************************************************************************
364  * CORE message types
365  ******************************************************************************/
366
367 /**
368  * Initial setup message from core client to core.
369  */
370 #define GNUNET_MESSAGE_TYPE_CORE_INIT 64
371
372 /**
373  * Response from core to core client to INIT message.
374  */
375 #define GNUNET_MESSAGE_TYPE_CORE_INIT_REPLY 65
376
377 /**
378  * Notify clients about new peer-to-peer connections (before
379  * key exchange and authentication).
380  */
381 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_PRE_CONNECT 66
382
383 /**
384  * Notify clients about new peer-to-peer connections (triggered
385  * after key exchange).
386  */
387 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_CONNECT 67
388
389 /**
390  * Notify clients about peer disconnecting.
391  */
392 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT 68
393
394 /**
395  * Notify clients about peer status change.
396  */
397 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_STATUS_CHANGE 69
398
399 /**
400  * Notify clients about incoming P2P messages.
401  */
402 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND 70
403
404 /**
405  * Notify clients about outgoing P2P transmissions.
406  */
407 #define GNUNET_MESSAGE_TYPE_CORE_NOTIFY_OUTBOUND 71
408
409 /**
410  * Request from client to transmit message.
411  */
412 #define GNUNET_MESSAGE_TYPE_CORE_SEND_REQUEST 74
413
414 /**
415  * Confirmation from core that message can now be sent
416  */
417 #define GNUNET_MESSAGE_TYPE_CORE_SEND_READY 75
418
419 /**
420  * Client with message to transmit (after SEND_READY confirmation
421  * was received).
422  */
423 #define GNUNET_MESSAGE_TYPE_CORE_SEND 76
424
425
426 /**
427  * Request for peer iteration from CORE service.
428  */
429 #define GNUNET_MESSAGE_TYPE_CORE_ITERATE_PEERS 78
430
431 /**
432  * Last reply from core to request for peer iteration from CORE service.
433  */
434 #define GNUNET_MESSAGE_TYPE_CORE_ITERATE_PEERS_END 79
435
436 /**
437  * Check whether a given peer is currently connected to CORE.
438  */
439 #define GNUNET_MESSAGE_TYPE_CORE_PEER_CONNECTED 80
440
441 /**
442  * Session key exchange between peers.
443  */
444 #define GNUNET_MESSAGE_TYPE_CORE_SET_KEY 81
445
446 /**
447  * Encapsulation for an encrypted message between peers.
448  */
449 #define GNUNET_MESSAGE_TYPE_CORE_ENCRYPTED_MESSAGE 82
450
451 /**
452  * Check that other peer is alive (challenge).
453  */
454 #define GNUNET_MESSAGE_TYPE_CORE_PING 83
455
456 /**
457  * Confirmation that other peer is alive.
458  */
459 #define GNUNET_MESSAGE_TYPE_CORE_PONG 84
460
461 /**
462  * Request by the other peer to terminate the connection.
463  */
464 #define GNUNET_MESSAGE_TYPE_CORE_HANGUP 85
465
466 /**
467  * gzip-compressed type map of the sender
468  */
469 #define GNUNET_MESSAGE_TYPE_CORE_COMPRESSED_TYPE_MAP 86
470
471 /**
472  * uncompressed type map of the sender
473  */
474 #define GNUNET_MESSAGE_TYPE_CORE_BINARY_TYPE_MAP 87
475
476 /*******************************************************************************
477  * DATASTORE message types
478  ******************************************************************************/
479
480 /**
481  * Message sent by datastore client on join.
482  */
483 #define GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE 92
484
485 /**
486  * Message sent by datastore client on join.
487  */
488 #define GNUNET_MESSAGE_TYPE_DATASTORE_RELEASE_RESERVE 93
489
490 /**
491  * Message sent by datastore to client informing about status
492  * processing a request
493  * (in response to RESERVE, RELEASE_RESERVE, PUT, UPDATE and REMOVE requests).
494  */
495 #define GNUNET_MESSAGE_TYPE_DATASTORE_STATUS 94
496
497 /**
498  * Message sent by datastore client to store data.
499  */
500 #define GNUNET_MESSAGE_TYPE_DATASTORE_PUT 95
501
502 /**
503  * Message sent by datastore client to update data.
504  */
505 #define GNUNET_MESSAGE_TYPE_DATASTORE_UPDATE 96
506
507 /**
508  * Message sent by datastore client to get data.
509  */
510 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET 97
511
512 /**
513  * Message sent by datastore client to get random data.
514  */
515 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_REPLICATION 98
516
517 /**
518  * Message sent by datastore client to get random data.
519  */
520 #define GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY 99
521
522 /**
523  * Message sent by datastore to client providing requested data
524  * (in response to GET or GET_RANDOM request).
525  */
526 #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA 100
527
528 /**
529  * Message sent by datastore to client signaling end of matching data.
530  * This message will also be sent for "GET_RANDOM", even though
531  * "GET_RANDOM" returns at most one data item.
532  */
533 #define GNUNET_MESSAGE_TYPE_DATASTORE_DATA_END 101
534
535 /**
536  * Message sent by datastore client to remove data.
537  */
538 #define GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE 102
539
540 /**
541  * Message sent by datastore client to drop the database.
542  */
543 #define GNUNET_MESSAGE_TYPE_DATASTORE_DROP 103
544
545
546 /*******************************************************************************
547  * FS message types
548  ******************************************************************************/
549
550 /**
551  * Message sent by fs client to start indexing.
552  */
553 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START 128
554
555 /**
556  * Affirmative response to a request for start indexing.
557  */
558 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_OK 129
559
560 /**
561  * Response to a request for start indexing that
562  * refuses.
563  */
564 #define GNUNET_MESSAGE_TYPE_FS_INDEX_START_FAILED 130
565
566 /**
567  * Request from client for list of indexed files.
568  */
569 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_GET 131
570
571 /**
572  * Reply to client with an indexed file name.
573  */
574 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY 132
575
576 /**
577  * Reply to client indicating end of list.
578  */
579 #define GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_END 133
580
581 /**
582  * Request from client to unindex a file.
583  */
584 #define GNUNET_MESSAGE_TYPE_FS_UNINDEX 134
585
586 /**
587  * Reply to client indicating unindex receipt.
588  */
589 #define GNUNET_MESSAGE_TYPE_FS_UNINDEX_OK 135
590
591 /**
592  * Client asks FS service to start a (keyword) search.
593  */
594 #define GNUNET_MESSAGE_TYPE_FS_START_SEARCH 136
595
596 /**
597  * P2P request for content (one FS to another).
598  */
599 #define GNUNET_MESSAGE_TYPE_FS_GET 137
600
601 /**
602  * P2P response with content or active migration of content.  Also
603  * used between the service and clients (in response to START_SEARCH).
604  */
605 #define GNUNET_MESSAGE_TYPE_FS_PUT 138
606
607 /**
608  * Peer asks us to stop migrating content towards it for a while.
609  */
610 #define GNUNET_MESSAGE_TYPE_FS_MIGRATION_STOP 139
611
612
613 /*******************************************************************************
614  * DHT message types
615  ******************************************************************************/
616
617 /**
618  * Client wants to store item in DHT.
619  */
620 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT 142
621
622 /**
623  * Client wants to lookup item in DHT.
624  */
625 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET 143
626
627 /**
628  * Client wants to stop search in DHT.
629  */
630 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_GET_STOP 144
631
632 /**
633  * Service returns result to client.
634  */
635 #define GNUNET_MESSAGE_TYPE_DHT_CLIENT_RESULT 145
636
637 /**
638  * Peer is storing data in DHT.
639  */
640 #define GNUNET_MESSAGE_TYPE_DHT_P2P_PUT 146
641
642 /**
643  * Peer tries to find data in DHT.
644  */
645 #define GNUNET_MESSAGE_TYPE_DHT_P2P_GET 147
646
647 /**
648  * Data is returned to peer from DHT.
649  */
650 #define GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT 148
651
652
653 /*******************************************************************************
654  * HOSTLIST message types
655  ******************************************************************************/
656
657 /**
658  * Hostlist advertisement message
659  */
660 #define GNUNET_MESSAGE_TYPE_HOSTLIST_ADVERTISEMENT 160
661
662
663 /*******************************************************************************
664  * STATISTICS message types
665  ******************************************************************************/
666
667 /**
668  * Set a statistical value.
669  */
670 #define GNUNET_MESSAGE_TYPE_STATISTICS_SET 168
671
672 /**
673  * Get a statistical value(s).
674  */
675 #define GNUNET_MESSAGE_TYPE_STATISTICS_GET 169
676
677 /**
678  * Response to a STATISTICS_GET message (with value).
679  */
680 #define GNUNET_MESSAGE_TYPE_STATISTICS_VALUE 170
681
682 /**
683  * Response to a STATISTICS_GET message (end of value stream).
684  */
685 #define GNUNET_MESSAGE_TYPE_STATISTICS_END 171
686
687 /**
688  * Watch changes to a statistical value.  Message format is the same
689  * as for GET, except that the subsystem and entry name must be given.
690  */
691 #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH 172
692
693 /**
694  * Changes to a watched value.
695  */
696 #define GNUNET_MESSAGE_TYPE_STATISTICS_WATCH_VALUE 173
697
698
699 /*******************************************************************************
700  * VPN message types
701  ******************************************************************************/
702
703 /**
704  * Type of messages between the gnunet-vpn-helper and the daemon
705  */
706 #define GNUNET_MESSAGE_TYPE_VPN_HELPER 185
707
708 /**
709  * Type of messages containing an UDP packet for a service
710  */
711 #define GNUNET_MESSAGE_TYPE_VPN_SERVICE_UDP 186
712
713 /**
714  * Type of messages containing an UDP packet from a service
715  */
716 #define GNUNET_MESSAGE_TYPE_VPN_SERVICE_UDP_BACK 187
717
718 /**
719  * Type of messages containing an TCP packet for a service
720  */
721 #define GNUNET_MESSAGE_TYPE_VPN_SERVICE_TCP 188
722
723 /**
724  * Type of messages containing an TCP packet from a service
725  */
726 #define GNUNET_MESSAGE_TYPE_VPN_SERVICE_TCP_BACK 189
727
728 /**
729  * Type of messages containing an UDP packet for a remote host
730  */
731 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_UDP 190
732
733 /**
734  * Type of messages containing an UDP packet from a remote host
735  */
736 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_UDP_BACK 191
737
738 /**
739  * Type of messages containing an TCP packet for a remote host
740  */
741 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_TCP 192
742
743 /**
744  * Type of messages containing an TCP packet from a remote host
745  */
746 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_TCP_BACK 193
747
748
749 /*******************************************************************************
750  * VPN-DNS message types
751  ******************************************************************************/
752
753 /**
754  * Type of messages to query the local service-dns
755  */
756 #define GNUNET_MESSAGE_TYPE_VPN_DNS_LOCAL_QUERY_DNS 205
757 /**
758  * Type of messages the local service-dns responds with
759  */
760 #define GNUNET_MESSAGE_TYPE_VPN_DNS_LOCAL_RESPONSE_DNS 206
761 /**
762  * Type of messages to instruct the local service-dns to rehijack the dns
763  */
764 #define GNUNET_MESSAGE_TYPE_REHIJACK 207
765 /**
766  * Type of messages to send a DNS-query to another peer
767  */
768 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_QUERY_DNS 208
769 /**
770  * Type of messages to send a DNS-answer to another peer
771  */
772 #define GNUNET_MESSAGE_TYPE_VPN_REMOTE_ANSWER_DNS 209
773
774
775
776 /*******************************************************************************
777  * MESH message types
778  ******************************************************************************/
779
780 /**
781  * Type of message used to transport messages throug a MESH-tunnel (LEGACY)
782  */
783 #define GNUNET_MESSAGE_TYPE_MESH 215
784
785 /**
786  * Type of message used to send another peer which messages we want to receive
787  * through a mesh-tunnel (LEGACY)
788  */
789 #define GNUNET_MESSAGE_TYPE_MESH_HELLO 216
790
791
792 /**
793  * Request the creation of a path
794  */
795 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE            256
796
797 /**
798  * Request the modification of an existing path
799  */
800 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGE            257
801
802 /**
803  * Notify that a connection of a path is no longer valid
804  */
805 #define GNUNET_MESSAGE_TYPE_MESH_PATH_BROKEN            258
806
807 /**
808  * At some point, the route will spontaneously change
809  */
810 #define GNUNET_MESSAGE_TYPE_MESH_PATH_CHANGED           259
811
812 /**
813  * Transport data in the mesh (origin->end) unicast
814  */
815 #define GNUNET_MESSAGE_TYPE_MESH_UNICAST                260
816
817 /**
818  * Transport data to all peers in a tunnel
819  */
820 #define GNUNET_MESSAGE_TYPE_MESH_MULTICAST              261
821
822 /**
823  * Transport data back in the mesh (end->origin)
824  */
825 #define GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN              262
826
827 /**
828  * Send origin an ACK that the path is complete
829  */
830 #define GNUNET_MESSAGE_TYPE_MESH_PATH_ACK               263
831
832 /**
833  * Avoid path timeouts
834  */
835 #define GNUNET_MESSAGE_TYPE_MESH_PATH_KEEPALIVE         264
836
837 /**
838  * Request the destuction of a path
839  */
840 #define GNUNET_MESSAGE_TYPE_MESH_PATH_DESTROY           265
841
842 /**
843  * Request the destruction of a whole tunnel
844  */
845 #define GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY         266
846
847 /**
848  * We need flow control
849  */
850 #define GNUNET_MESSAGE_TYPE_MESH_SPEED_NOTIFY           270
851
852 /**
853  * Connect to the mesh service, specifying subscriptions
854  */
855 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_CONNECT          272
856
857 /**
858  * Ask the mesh service to create a new tunnel
859  */
860 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE    273
861
862 /**
863  * Ask the mesh service to destroy a tunnel
864  */
865 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY   274
866
867 /**
868  * Ask the mesh service to add a peer to an existing tunnel
869  */
870 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD         275
871
872 /**
873  * Ask the mesh service to remove a peer from a tunnel
874  */
875 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_DEL         276
876
877 /**
878  * Ask the mesh service to add a peer offering a service to an existing tunnel
879  */
880 #define GNUNET_MESSAGE_TYPE_MESH_LOCAL_PEER_ADD_BY_TYPE 277
881
882 /**
883  * 640kb should be enough for everybody
884  */
885 #define GNUNET_MESSAGE_TYPE_MESH_RESERVE_END            288
886
887
888
889 /*******************************************************************************
890  * CHAT message types START
891  ******************************************************************************/
892
893 /**
894  * Message sent from client to join a chat room.
895  */
896 #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_REQUEST 300
897
898 /**
899  * Message sent to client to indicate joining of another room member.
900  */
901 #define GNUNET_MESSAGE_TYPE_CHAT_JOIN_NOTIFICATION 301
902
903 /**
904  * Message sent to client to indicate leaving of another room member.
905  */
906 #define GNUNET_MESSAGE_TYPE_CHAT_LEAVE_NOTIFICATION 302
907
908 /**
909  * Notification sent by service to client indicating that we've received a chat
910  * message.
911  */
912 #define GNUNET_MESSAGE_TYPE_CHAT_MESSAGE_NOTIFICATION 303
913
914 /**
915  * Request sent by client to transmit a chat message to another room members.
916  */
917 #define GNUNET_MESSAGE_TYPE_CHAT_TRANSMIT_REQUEST 304
918
919 /**
920  * Receipt sent from a message receiver to the service to confirm delivery of
921  * a chat message.
922  */
923 #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_RECEIPT 305
924
925 /**
926  * Notification sent from the service to the original sender
927  * to acknowledge delivery of a chat message.
928  */
929 #define GNUNET_MESSAGE_TYPE_CHAT_CONFIRMATION_NOTIFICATION 306
930
931 /**
932  * P2P message sent to indicate joining of another room member.
933  */
934 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_JOIN_NOTIFICATION 307
935
936 /**
937  * P2P message sent to indicate leaving of another room member.
938  */
939 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_LEAVE_NOTIFICATION 308
940
941 /**
942  * P2P message sent to a newly connected peer to request its known clients in
943  * order to synchronize room members.
944  */
945 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_SYNC_REQUEST 309
946
947 /**
948  * Notification sent from one peer to another to indicate that we have received
949  * a chat message.
950  */
951 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_MESSAGE_NOTIFICATION 310
952
953 /**
954  * P2P receipt confirming delivery of a chat message.
955  */
956 #define GNUNET_MESSAGE_TYPE_CHAT_P2P_CONFIRMATION_RECEIPT 311
957
958
959 /*******************************************************************************
960  * NSE (network size estimation) message types
961  ******************************************************************************/
962
963 /**
964  * client->service message indicating start
965  */
966 #define GNUNET_MESSAGE_TYPE_NSE_START 321
967
968 /**
969  * P2P message sent from nearest peer
970  */
971 #define GNUNET_MESSAGE_TYPE_NSE_P2P_FLOOD 322
972
973 /**
974  * service->client message indicating
975  */
976 #define GNUNET_MESSAGE_TYPE_NSE_ESTIMATE 323
977
978
979 /*******************************************************************************
980  * PEERINFO message types
981  ******************************************************************************/
982
983 /**
984  * Request update and listing of a peer.
985  */
986 #define GNUNET_MESSAGE_TYPE_PEERINFO_GET 330
987
988 /**
989  * Request update and listing of all peers.
990  */
991 #define GNUNET_MESSAGE_TYPE_PEERINFO_GET_ALL 331
992
993 /**
994  * Information about one of the peers.
995  */
996 #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO 332
997
998 /**
999  * End of information about other peers.
1000  */
1001 #define GNUNET_MESSAGE_TYPE_PEERINFO_INFO_END 333
1002
1003 /**
1004  * Start notifying this client about all changes to
1005  * the known peers until it disconnects.
1006  */
1007 #define GNUNET_MESSAGE_TYPE_PEERINFO_NOTIFY 334
1008
1009 /*******************************************************************************
1010  * ATS message types
1011  ******************************************************************************/
1012
1013 /**
1014  * Type of the 'struct ClientStartMessage' sent by clients to ATS to
1015  * identify the type of the client.
1016  */
1017 #define GNUNET_MESSAGE_TYPE_ATS_START 340
1018
1019 /**
1020  * Type of the 'struct RequestAddressMessage' sent by clients to ATS
1021  * to request an address to help connect.
1022  */
1023 #define GNUNET_MESSAGE_TYPE_ATS_REQUEST_ADDRESS 341
1024
1025 /**
1026  * Type of the 'struct AddressUpdateMessage' sent by clients to ATS
1027  * to inform ATS about performance changes.
1028  */
1029 #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_UPDATE 342
1030
1031 /**
1032  * Type of the 'struct AddressDestroyedMessage' sent by clients to ATS
1033  * to inform ATS about an address being unavailable.
1034  */
1035 #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_DESTROYED 343
1036
1037 /**
1038  * Type of the 'struct AddressSuggestionMessage' sent by ATS to clients
1039  * to suggest switching to a different address.
1040  */
1041 #define GNUNET_MESSAGE_TYPE_ATS_ADDRESS_SUGGESTION 344
1042
1043 /**
1044  * Type of the 'struct PeerInformationMessage' sent by ATS to clients
1045  * to inform about QoS for a particular connection.
1046  */
1047 #define GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION 345
1048
1049 /**
1050  * Type of the 'struct ReservationRequestMessage' sent by clients to ATS
1051  * to ask for inbound bandwidth reservations.
1052  */
1053 #define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_REQUEST 346
1054
1055 /**
1056  * Type of the 'struct ReservationResultMessage' sent by ATS to clients
1057  * in response to a reservation request.
1058  */
1059 #define GNUNET_MESSAGE_TYPE_ATS_RESERVATION_RESULT 347
1060
1061 /**
1062  * Type of the 'struct ChangePreferenceMessage' sent by clients to ATS
1063  * to ask for allocation preference changes.
1064  */
1065 #define GNUNET_MESSAGE_TYPE_ATS_PREFERENCE_CHANGE 348
1066
1067 /**
1068  * Type of the 'struct SessionReleaseMessage' sent by ATS to client
1069  * to confirm that a session ID was destroyed.
1070  */
1071 #define GNUNET_MESSAGE_TYPE_ATS_SESSION_RELEASE 349
1072
1073
1074 /*******************************************************************************
1075  * TODO: we need a way to register message types centrally (via some webpage).
1076  * For now: unofficial extensions should start at 48k, internal extensions
1077  * define here should leave some room (4-10 additional messages to the previous
1078  * extension).
1079  ******************************************************************************/
1080
1081 /**
1082  * Type used to match 'all' message types.
1083  */
1084 #define GNUNET_MESSAGE_TYPE_ALL 65535
1085
1086
1087 #if 0                           /* keep Emacsens' auto-indent happy */
1088 {
1089 #endif
1090 #ifdef __cplusplus
1091 }
1092 #endif
1093
1094 /* ifndef GNUNET_PROTOCOLS_H */
1095 #endif
1096 /* end of gnunet_protocols.h */