aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorSupriti Singh <supritisingh08@gmail.com>2014-06-23 13:30:07 +0000
committerSupriti Singh <supritisingh08@gmail.com>2014-06-23 13:30:07 +0000
commit310b25e5a713d547aea2f34c76e7b3e35ded1ea5 (patch)
tree5d0bcc92b665f97dec9bbc8f8cb0c1e31718c6dc /src/include
parent2ff52dabfadd9390d0751f9f9bdf463d76a80ec5 (diff)
downloadgnunet-310b25e5a713d547aea2f34c76e7b3e35ded1ea5.tar.gz
gnunet-310b25e5a713d547aea2f34c76e7b3e35ded1ea5.zip
-- New message type, GNUNET_MESSAGE_TYPE_XDHT_P2P_PUT and GNUNET_MESSAGE_TYPE_XDHT_P2P_GET
-- Changing name of all the messages of X-Vine by appending X in front of DHT. -- Not sending trail teardown in case next_hop or prev_hop is me (remove routing trail due to disconnected peer)
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_protocols.h34
1 files changed, 22 insertions, 12 deletions
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h
index 77c6a6337..b24810110 100644
--- a/src/include/gnunet_protocols.h
+++ b/src/include/gnunet_protocols.h
@@ -2499,64 +2499,74 @@ extern "C"
2499/** 2499/**
2500 * Trail setup request is received by a peer. 2500 * Trail setup request is received by a peer.
2501 */ 2501 */
2502#define GNUNET_MESSAGE_TYPE_DHT_P2P_TRAIL_SETUP 880 2502#define GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_SETUP 880
2503 2503
2504/** 2504/**
2505 * Trail to a particular peer is returned to this peer. 2505 * Trail to a particular peer is returned to this peer.
2506 */ 2506 */
2507#define GNUNET_MESSAGE_TYPE_DHT_P2P_TRAIL_SETUP_RESULT 881 2507#define GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_SETUP_RESULT 881
2508 2508
2509/** 2509/**
2510 * Verify if your immediate successor is still your immediate successor. 2510 * Verify if your immediate successor is still your immediate successor.
2511 */ 2511 */
2512#define GNUNET_MESSAGE_TYPE_DHT_P2P_VERIFY_SUCCESSOR 882 2512#define GNUNET_MESSAGE_TYPE_XDHT_P2P_VERIFY_SUCCESSOR 882
2513 2513
2514/** 2514/**
2515 * Notify your new immediate successor that you are its new predecessor. 2515 * Notify your new immediate successor that you are its new predecessor.
2516 */ 2516 */
2517#define GNUNET_MESSAGE_TYPE_DHT_P2P_NOTIFY_NEW_SUCCESSOR 883 2517#define GNUNET_MESSAGE_TYPE_XDHT_P2P_NOTIFY_NEW_SUCCESSOR 883
2518 2518
2519/** 2519/**
2520 * Message which contains the immediate predecessor of requested successor 2520 * Message which contains the immediate predecessor of requested successor
2521 */ 2521 */
2522#define GNUNET_MESSAGE_TYPE_DHT_P2P_VERIFY_SUCCESSOR_RESULT 884 2522#define GNUNET_MESSAGE_TYPE_XDHT_P2P_VERIFY_SUCCESSOR_RESULT 884
2523 2523
2524/** 2524/**
2525 * Message which contains the get result. 2525 * Message which contains the get result.
2526 */ 2526 */
2527#define GNUNET_MESSAGE_TYPE_DHT_P2P_GET_RESULT 885 2527#define GNUNET_MESSAGE_TYPE_XDHT_P2P_GET_RESULT 885
2528 2528
2529/** 2529/**
2530 * Trail Rejection Message. 2530 * Trail Rejection Message.
2531 */ 2531 */
2532#define GNUNET_MESSAGE_TYPE_DHT_P2P_TRAIL_SETUP_REJECTION 886 2532#define GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_SETUP_REJECTION 886
2533 2533
2534/** 2534/**
2535 * Trail Tear down Message. 2535 * Trail Tear down Message.
2536 */ 2536 */
2537#define GNUNET_MESSAGE_TYPE_DHT_P2P_TRAIL_TEARDOWN 887 2537#define GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_TEARDOWN 887
2538 2538
2539/** 2539/**
2540 * Routing table add message. 2540 * Routing table add message.
2541 */ 2541 */
2542#define GNUNET_MESSAGE_TYPE_DHT_P2P_ADD_TRAIL 888 2542#define GNUNET_MESSAGE_TYPE_XDHT_P2P_ADD_TRAIL 888
2543 2543
2544/** 2544/**
2545 * Trail compression message. 2545 * Trail compression message.
2546 */ 2546 */
2547#define GNUNET_MESSAGE_TYPE_DHT_P2P_TRAIL_COMPRESSION 889 2547#define GNUNET_MESSAGE_TYPE_XDHT_P2P_TRAIL_COMPRESSION 889
2548
2549/**
2550 * Client wants to store item in DHT.
2551 */
2552#define GNUNET_MESSAGE_TYPE_XDHT_P2P_PUT 890
2553
2554/**
2555 * Peer tries to find data in DHT.
2556 */
2557#define GNUNET_MESSAGE_TYPE_XDHT_P2P_GET 891
2548 2558
2549#if ENABLE_MALICIOUS 2559#if ENABLE_MALICIOUS
2550/** 2560/**
2551 * Turn X-VINE DHT service malicious 2561 * Turn X-VINE DHT service malicious
2552 */ 2562 */
2553#define GNUNET_MESSAGE_TYPE_DHT_ACT_MALICIOUS 890 2563#define GNUNET_MESSAGE_TYPE_DHT_ACT_MALICIOUS 892
2554#endif 2564#endif
2555 2565
2556/*******************************************************************************/ 2566/*******************************************************************************/
2557 2567
2558/** 2568/**
2559 * Next available: 900 2569 * Next available: 902
2560 */ 2570 */
2561 2571
2562/** 2572/**