aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_protocols.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-12 11:31:50 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-12 11:31:50 +0000
commit02ccdcf0ef5c039224a397f057b2a76f54364d92 (patch)
treedb9e4faee6831b965fedb5648915a556be5ff091 /src/include/gnunet_protocols.h
parent17987cc9db00b169dd8bff5a620e5d5ab51ff044 (diff)
downloadgnunet-02ccdcf0ef5c039224a397f057b2a76f54364d92.tar.gz
gnunet-02ccdcf0ef5c039224a397f057b2a76f54364d92.zip
realigning CADET messages and bumping message types to avoid interactions with incompatible old versions complicating diagnostics
Diffstat (limited to 'src/include/gnunet_protocols.h')
-rw-r--r--src/include/gnunet_protocols.h446
1 files changed, 176 insertions, 270 deletions
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 8da8fcd00..dc5b5deed 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -796,178 +796,6 @@ extern "C"
796#define GNUNET_MESSAGE_TYPE_DNS_HELPER 214 796#define GNUNET_MESSAGE_TYPE_DNS_HELPER 214
797 797
798 798
799/*******************************************************************************
800 * CADET message types
801 ******************************************************************************/
802
803/**
804 * Type of message used to transport messages throug a CADET-tunnel (LEGACY)
805 */
806#define GNUNET_MESSAGE_TYPE_CADET 215
807
808/**
809 * Type of message used to send another peer which messages we want to receive
810 * through a cadet-tunnel (LEGACY)
811 */
812#define GNUNET_MESSAGE_TYPE_CADET_HELLO 216
813
814/**
815 * Request the creation of a connection
816 */
817#define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE 256
818
819/**
820 * Send origin an ACK that the connection is complete
821 */
822#define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK 257
823
824/**
825 * Notify that a connection is no longer valid
826 */
827#define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN 258
828
829/**
830 * At some point, the route will spontaneously change TODO
831 */
832#define GNUNET_MESSAGE_TYPE_CADET_PATH_CHANGED 259
833
834/**
835 * Payload data (usually inside a encrypted tunnel).
836 */
837#define GNUNET_MESSAGE_TYPE_CADET_DATA 260
838
839/**
840 * Confirm payload data end-to-end.
841 */
842#define GNUNET_MESSAGE_TYPE_CADET_DATA_ACK 261
843
844/**
845 * Key exchange encapsulation.
846 */
847#define GNUNET_MESSAGE_TYPE_CADET_KX 262
848
849/**
850 * Request the destuction of a connection
851 */
852#define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY 266
853
854/**
855 * Hop-by-hop, connection dependent ACK.
856 */
857#define GNUNET_MESSAGE_TYPE_CADET_ACK 268
858
859/**
860 * Poll for a hop-by-hop ACK.
861 */
862#define GNUNET_MESSAGE_TYPE_CADET_POLL 269
863
864/**
865 * Announce connection is still alive (direction sensitive).
866 */
867#define GNUNET_MESSAGE_TYPE_CADET_KEEPALIVE 270
868
869
870/**
871 * Ask the cadet service to create a new channel.
872 */
873#define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_CREATE 273
874
875/**
876 * Ask the cadet service to destroy a channel.
877 */
878#define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY 274
879
880/**
881 * Confirm the creation of a channel
882 */
883#define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_ACK 275
884
885/**
886 * Reject the creation of a channel
887 */
888#define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_NACK 276
889
890/**
891 * Axolotl key exchange.
892 */
893#define GNUNET_MESSAGE_TYPE_CADET_AX_KX 281
894
895/**
896 * Axolotl encrypted data.
897 */
898#define GNUNET_MESSAGE_TYPE_CADET_AX 282
899
900/**
901 * Payload client <-> service
902 */
903#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA 285
904
905/**
906 * Local ACK for data.
907 */
908#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_ACK 286
909
910/**
911 * Start listening on a port.
912 */
913#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_OPEN 287
914
915/**
916 * Stop listening on a port.
917 */
918#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_CLOSE 288
919
920/**
921 * Local information about all channels of service.
922 */
923#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CHANNELS 290
924
925/**
926 * Local information of service about a specific channel.
927 */
928#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CHANNEL 291
929
930/**
931 * Local information about all tunnels of service.
932 */
933#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNELS 292
934
935/**
936 * Local information of service about a specific tunnel.
937 */
938#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNEL 293
939
940/**
941 * Local information about all connections of service.
942 */
943#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CONNECTIONS 294
944
945/**
946 * Local information of service about a specific connection.
947 */
948#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CONNECTION 295
949
950/**
951 * Local information about all peers known to the service.
952 */
953#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEERS 296
954
955/**
956 * Local information of service about a specific peer.
957 */
958#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEER 297
959
960/**
961 * Traffic (net-cat style) used by the Command Line Interface.
962 */
963#define GNUNET_MESSAGE_TYPE_CADET_CLI 298
964
965/**
966 * Debug request.
967 */
968#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_DUMP 299
969
970
971 799
972/******************************************************************************* 800/*******************************************************************************
973 * CHAT message types START 801 * CHAT message types START
@@ -1961,37 +1789,6 @@ extern "C"
1961#define GNUNET_MESSAGE_TYPE_TESTBED_LOGGER_ACK 601 1789#define GNUNET_MESSAGE_TYPE_TESTBED_LOGGER_ACK 601
1962 1790
1963 1791
1964/*******************************************************************************
1965 * EXPERIMENTATION message types
1966 ******************************************************************************/
1967
1968/**
1969 * Message for experimentation request
1970 */
1971#define GNUNET_MESSAGE_TYPE_EXPERIMENTATION_REQUEST 610
1972
1973/**
1974 * Message for experimentation response
1975 */
1976#define GNUNET_MESSAGE_TYPE_EXPERIMENTATION_RESPONSE 611
1977
1978/**
1979 * Message for experimentation response
1980 */
1981#define GNUNET_MESSAGE_TYPE_EXPERIMENTATION_START 612
1982
1983/**
1984 * Message for experimentation response
1985 */
1986#define GNUNET_MESSAGE_TYPE_EXPERIMENTATION_START_ACK 613
1987
1988/**
1989 * Message for experimentation response
1990 */
1991#define GNUNET_MESSAGE_TYPE_EXPERIMENTATION_STOP 614
1992
1993
1994
1995 1792
1996/** 1793/**
1997 * Advertise regex capability. 1794 * Advertise regex capability.
@@ -2478,72 +2275,6 @@ extern "C"
2478 2275
2479 2276
2480/******************************************************************************* 2277/*******************************************************************************
2481 * SENSOR message types
2482 ******************************************************************************/
2483
2484/**
2485 * Request information about all sensors
2486 */
2487#define GNUNET_MESSAGE_TYPE_SENSOR_GETALL 800
2488
2489/**
2490 * Request information about one sensor
2491 */
2492#define GNUNET_MESSAGE_TYPE_SENSOR_GET 801
2493
2494/**
2495 * Message carrying sensor information
2496 */
2497#define GNUNET_MESSAGE_TYPE_SENSOR_INFO 802
2498
2499/**
2500 * End of an iteration sequence
2501 */
2502#define GNUNET_MESSAGE_TYPE_SENSOR_END 803
2503
2504/**
2505 * Message carrying a single sensor reading
2506 */
2507#define GNUNET_MESSAGE_TYPE_SENSOR_READING 804
2508
2509/**
2510 * Request for sensor list from update point
2511 */
2512#define GNUNET_MESSAGE_TYPE_SENSOR_LIST_REQ 805
2513
2514/**
2515 * Messsage carrying brief sensor information (name, version)
2516 */
2517#define GNUNET_MESSAGE_TYPE_SENSOR_BRIEF 806
2518
2519/**
2520 * Request for full sensor information
2521 */
2522#define GNUNET_MESSAGE_TYPE_SENSOR_FULL_REQ 807
2523
2524/**
2525 * Full sensor information
2526 */
2527#define GNUNET_MESSAGE_TYPE_SENSOR_FULL 808
2528
2529/**
2530 * Sensor anomaly report
2531 */
2532#define GNUNET_MESSAGE_TYPE_SENSOR_ANOMALY_REPORT 809
2533
2534/**
2535 * Message sent from API to service to force a new sensor anomaly status
2536 * (For testing purposes only)
2537 */
2538#define GNUNET_MESSAGE_TYPE_SENSOR_ANOMALY_FORCE 810
2539
2540/**
2541 * Sensor anomaly report exchanged between peers
2542 */
2543#define GNUNET_MESSAGE_TYPE_SENSOR_ANOMALY_REPORT_P2P 811
2544
2545
2546/*******************************************************************************
2547 * PEERSTORE message types 2278 * PEERSTORE message types
2548 ******************************************************************************/ 2279 ******************************************************************************/
2549 2280
@@ -2851,9 +2582,184 @@ extern "C"
2851 2582
2852/*******************************************************************************/ 2583/*******************************************************************************/
2853 2584
2585
2586/*******************************************************************************
2587 * CADET message types
2588 ******************************************************************************/
2589
2590/**
2591 * Type of message used to transport messages throug a CADET-tunnel (LEGACY)
2592 */
2593#define GNUNET_MESSAGE_TYPE_CADET 1000
2594
2595/**
2596 * Type of message used to send another peer which messages we want to receive
2597 * through a cadet-tunnel (LEGACY)
2598 */
2599#define GNUNET_MESSAGE_TYPE_CADET_HELLO 1001
2600
2601/**
2602 * Request the creation of a connection
2603 */
2604#define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE 1002
2605
2606/**
2607 * Send origin an ACK that the connection is complete
2608 */
2609#define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK 1003
2610
2611/**
2612 * Notify that a connection is no longer valid
2613 */
2614#define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN 1004
2615
2616/**
2617 * At some point, the route will spontaneously change TODO
2618 */
2619#define GNUNET_MESSAGE_TYPE_CADET_PATH_CHANGED 1005
2620
2621/**
2622 * Payload data (usually inside a encrypted tunnel).
2623 */
2624#define GNUNET_MESSAGE_TYPE_CADET_DATA 1006
2625
2626/**
2627 * Confirm payload data end-to-end.
2628 */
2629#define GNUNET_MESSAGE_TYPE_CADET_DATA_ACK 1007
2630
2631/**
2632 * Key exchange encapsulation.
2633 */
2634#define GNUNET_MESSAGE_TYPE_CADET_KX 1008
2635
2636/**
2637 * Request the destuction of a connection
2638 */
2639#define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY 1009
2640
2641/**
2642 * Hop-by-hop, connection dependent ACK.
2643 */
2644#define GNUNET_MESSAGE_TYPE_CADET_ACK 1010
2645
2646/**
2647 * Poll for a hop-by-hop ACK.
2648 */
2649#define GNUNET_MESSAGE_TYPE_CADET_POLL 1011
2650
2651/**
2652 * Announce connection is still alive (direction sensitive).
2653 */
2654#define GNUNET_MESSAGE_TYPE_CADET_KEEPALIVE 1012
2655
2656
2657/**
2658 * Ask the cadet service to create a new channel.
2659 */
2660#define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_CREATE 1013
2661
2662/**
2663 * Ask the cadet service to destroy a channel.
2664 */
2665#define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY 1014
2666
2667/**
2668 * Confirm the creation of a channel
2669 */
2670#define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_ACK 1015
2671
2672/**
2673 * Reject the creation of a channel
2674 */
2675#define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_NACK 1016
2676
2677/**
2678 * Axolotl key exchange.
2679 */
2680#define GNUNET_MESSAGE_TYPE_CADET_AX_KX 1017
2681
2854/** 2682/**
2855 * Next available: 970 2683 * Axolotl encrypted data.
2684 */
2685#define GNUNET_MESSAGE_TYPE_CADET_AX 1018
2686
2687/**
2688 * Payload client <-> service
2689 */
2690#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_DATA 1019
2691
2692/**
2693 * Local ACK for data.
2694 */
2695#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_ACK 1020
2696
2697/**
2698 * Start listening on a port.
2699 */
2700#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_OPEN 1021
2701
2702/**
2703 * Stop listening on a port.
2704 */
2705#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_PORT_CLOSE 1022
2706
2707/**
2708 * Local information about all channels of service.
2856 */ 2709 */
2710#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CHANNELS 1023
2711
2712/**
2713 * Local information of service about a specific channel.
2714 */
2715#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CHANNEL 1024
2716
2717/**
2718 * Local information about all tunnels of service.
2719 */
2720#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNELS 1025
2721
2722/**
2723 * Local information of service about a specific tunnel.
2724 */
2725#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_TUNNEL 1026
2726
2727/**
2728 * Local information about all connections of service.
2729 */
2730#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CONNECTIONS 1027
2731
2732/**
2733 * Local information of service about a specific connection.
2734 */
2735#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_CONNECTION 1028
2736
2737/**
2738 * Local information about all peers known to the service.
2739 */
2740#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEERS 1029
2741
2742/**
2743 * Local information of service about a specific peer.
2744 */
2745#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEER 1030
2746
2747/**
2748 * Traffic (net-cat style) used by the Command Line Interface.
2749 */
2750#define GNUNET_MESSAGE_TYPE_CADET_CLI 1031
2751
2752/**
2753 * Debug request.
2754 */
2755#define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_DUMP 1032
2756
2757
2758/**
2759 * Next available: 1060
2760 */
2761
2762
2857 2763
2858/** 2764/**
2859 * Type used to match 'all' message types. 2765 * Type used to match 'all' message types.