diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2017-01-20 07:00:54 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2017-01-20 07:00:54 +0100 |
commit | 3cb90c74c5f591fd2541d154a8e7b05a1c2f4539 (patch) | |
tree | 620638f54539749f2a1b27a5991a90880fe7c14d /src/include/gnunet_protocols.h | |
parent | 7122f35e2c00c29b1af31bdd294e93e6fcc84498 (diff) | |
parent | aedd5919e802370061850486c96da72b25df7f22 (diff) | |
download | gnunet-3cb90c74c5f591fd2541d154a8e7b05a1c2f4539.tar.gz gnunet-3cb90c74c5f591fd2541d154a8e7b05a1c2f4539.zip |
- merge; service API change
Diffstat (limited to 'src/include/gnunet_protocols.h')
-rw-r--r-- | src/include/gnunet_protocols.h | 66 |
1 files changed, 49 insertions, 17 deletions
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index cf26f1727..e31b1f33c 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -2645,7 +2645,7 @@ extern "C" | |||
2645 | /** | 2645 | /** |
2646 | * Send origin an ACK that the connection is complete | 2646 | * Send origin an ACK that the connection is complete |
2647 | */ | 2647 | */ |
2648 | #define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_ACK 1001 | 2648 | #define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE_ACK 1001 |
2649 | 2649 | ||
2650 | /** | 2650 | /** |
2651 | * Notify that a connection is no longer valid | 2651 | * Notify that a connection is no longer valid |
@@ -2660,49 +2660,53 @@ extern "C" | |||
2660 | /** | 2660 | /** |
2661 | * At some point, the route will spontaneously change TODO | 2661 | * At some point, the route will spontaneously change TODO |
2662 | */ | 2662 | */ |
2663 | #define GNUNET_MESSAGE_TYPE_CADET_PATH_CHANGED 1004 | 2663 | #define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_PATH_CHANGED_UNIMPLEMENTED 1004 |
2664 | 2664 | ||
2665 | /** | 2665 | /** |
2666 | * Hop-by-hop, connection dependent ACK. | 2666 | * Hop-by-hop, connection dependent ACK. |
2667 | */ | 2667 | */ |
2668 | #define GNUNET_MESSAGE_TYPE_CADET_ACK 1005 | 2668 | #define GNUNET_MESSAGE_TYPE_CADET_CONNECTION_HOP_BY_HOP_ENCRYPTED_ACK 1005 |
2669 | 2669 | ||
2670 | /** | 2670 | /** |
2671 | * Poll for a hop-by-hop ACK. | 2671 | * Axolotl key exchange. |
2672 | */ | 2672 | */ |
2673 | #define GNUNET_MESSAGE_TYPE_CADET_POLL 1006 | 2673 | #define GNUNET_MESSAGE_TYPE_CADET_TUNNEL_KX 1007 |
2674 | 2674 | ||
2675 | /** | 2675 | /** |
2676 | * Key exchange encapsulation. | 2676 | * Axolotl encrypted data. |
2677 | */ | 2677 | */ |
2678 | #define GNUNET_MESSAGE_TYPE_CADET_KX 1007 | 2678 | #define GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED 1008 |
2679 | 2679 | ||
2680 | /** | 2680 | /** |
2681 | * Axolotl encrypted data. | 2681 | * We do not bother with ACKs for |
2682 | * #GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED messages, but we instead | ||
2683 | * poll for one if we got nothing for a while and start to be worried. | ||
2682 | */ | 2684 | */ |
2683 | #define GNUNET_MESSAGE_TYPE_CADET_ENCRYPTED 1008 | 2685 | #define GNUNET_MESSAGE_TYPE_CADET_TUNNEL_ENCRYPTED_POLL 1006 |
2686 | |||
2687 | |||
2684 | 2688 | ||
2685 | /********************************** Channel *********************************/ | 2689 | /********************************** Channel *********************************/ |
2686 | 2690 | ||
2687 | /** | 2691 | /** |
2688 | * Payload data (inside an encrypted tunnel). | 2692 | * Payload data (inside an encrypted tunnel). |
2689 | */ | 2693 | */ |
2690 | #define GNUNET_MESSAGE_TYPE_CADET_DATA 1010 | 2694 | #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_APP_DATA 1010 |
2691 | 2695 | ||
2692 | /** | 2696 | /** |
2693 | * Confirm payload data end-to-end. | 2697 | * Confirm payload data end-to-end. |
2694 | */ | 2698 | */ |
2695 | #define GNUNET_MESSAGE_TYPE_CADET_DATA_ACK 1011 | 2699 | #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_APP_DATA_ACK 1011 |
2696 | 2700 | ||
2697 | /** | 2701 | /** |
2698 | * Announce connection is still alive (direction sensitive). | 2702 | * Announce connection is still alive (direction sensitive). |
2699 | */ | 2703 | */ |
2700 | #define GNUNET_MESSAGE_TYPE_CADET_KEEPALIVE 1012 | 2704 | #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_KEEPALIVE 1012 |
2701 | 2705 | ||
2702 | /** | 2706 | /** |
2703 | * Ask the cadet service to create a new channel. | 2707 | * Ask the cadet service to create a new channel. |
2704 | */ | 2708 | */ |
2705 | #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_CREATE 1013 | 2709 | #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN 1013 |
2706 | 2710 | ||
2707 | /** | 2711 | /** |
2708 | * Ask the cadet service to destroy a channel. | 2712 | * Ask the cadet service to destroy a channel. |
@@ -2712,12 +2716,12 @@ extern "C" | |||
2712 | /** | 2716 | /** |
2713 | * Confirm the creation of a channel | 2717 | * Confirm the creation of a channel |
2714 | */ | 2718 | */ |
2715 | #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_ACK 1015 | 2719 | #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_ACK 1015 |
2716 | 2720 | ||
2717 | /** | 2721 | /** |
2718 | * Reject the creation of a channel | 2722 | * Reject the creation of a channel |
2719 | */ | 2723 | */ |
2720 | #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_NACK 1016 | 2724 | #define GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_NACK_DEPRECATED 1016 |
2721 | 2725 | ||
2722 | /*********************************** Local **********************************/ | 2726 | /*********************************** Local **********************************/ |
2723 | 2727 | ||
@@ -2789,6 +2793,11 @@ extern "C" | |||
2789 | */ | 2793 | */ |
2790 | #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_DUMP 1038 | 2794 | #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_DUMP 1038 |
2791 | 2795 | ||
2796 | /** | ||
2797 | * End of local information about all peers known to the service. | ||
2798 | */ | ||
2799 | #define GNUNET_MESSAGE_TYPE_CADET_LOCAL_INFO_PEER_END 1039 | ||
2800 | |||
2792 | /******************************** Application *******************************/ | 2801 | /******************************** Application *******************************/ |
2793 | 2802 | ||
2794 | /** | 2803 | /** |
@@ -2833,7 +2842,7 @@ extern "C" | |||
2833 | /** | 2842 | /** |
2834 | * Message to ask NAT service to request autoconfiguration. | 2843 | * Message to ask NAT service to request autoconfiguration. |
2835 | */ | 2844 | */ |
2836 | #define GNUNET_MESSAGE_TYPE_NAT_REQUEST_AUTO_CFG 1067 | 2845 | #define GNUNET_MESSAGE_TYPE_NAT_AUTO_REQUEST_CFG 1067 |
2837 | 2846 | ||
2838 | /** | 2847 | /** |
2839 | * Message from NAT service with the autoconfiguration result. | 2848 | * Message from NAT service with the autoconfiguration result. |
@@ -2841,8 +2850,31 @@ extern "C" | |||
2841 | #define GNUNET_MESSAGE_TYPE_NAT_AUTO_CFG_RESULT 1068 | 2850 | #define GNUNET_MESSAGE_TYPE_NAT_AUTO_CFG_RESULT 1068 |
2842 | 2851 | ||
2843 | 2852 | ||
2853 | /* 1080-1109 reserved for TMCG (Heiko Stamer, see gnunet-developers, January 2017) */ | ||
2854 | |||
2855 | |||
2856 | /******************************************************************************/ | ||
2857 | /*********************************** AUCTION ********************************/ | ||
2858 | /******************************************************************************/ | ||
2859 | |||
2860 | /** | ||
2861 | * Client wants to create a new auction. | ||
2862 | */ | ||
2863 | #define GNUNET_MESSAGE_TYPE_AUCTION_CLIENT_CREATE 1110 | ||
2864 | |||
2865 | /** | ||
2866 | * Client wants to join an existing auction. | ||
2867 | */ | ||
2868 | #define GNUNET_MESSAGE_TYPE_AUCTION_CLIENT_JOIN 1111 | ||
2869 | |||
2870 | /** | ||
2871 | * Service reports the auction outcome to the client. | ||
2872 | */ | ||
2873 | #define GNUNET_MESSAGE_TYPE_AUCTION_CLIENT_OUTCOME 1112 | ||
2874 | |||
2875 | |||
2844 | /** | 2876 | /** |
2845 | * Next available: 1080 | 2877 | * Next available: 1130 |
2846 | */ | 2878 | */ |
2847 | 2879 | ||
2848 | 2880 | ||