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