aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/mesh2_protocol.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-05-14 15:55:50 +0000
committerBart Polot <bart@net.in.tum.de>2013-05-14 15:55:50 +0000
commit56ca1655cde3c572adc7fd91b5887fbe574c23ae (patch)
tree5cd802597d84dbe0bf2ca9d5ea3c81a306dd4bde /src/mesh/mesh2_protocol.h
parentdd5ab5c9a766b8ee9bb7ddb42afe16a09c2428e0 (diff)
downloadgnunet-56ca1655cde3c572adc7fd91b5887fbe574c23ae.tar.gz
gnunet-56ca1655cde3c572adc7fd91b5887fbe574c23ae.zip
- Added tunnel port parameter
Diffstat (limited to 'src/mesh/mesh2_protocol.h')
-rw-r--r--src/mesh/mesh2_protocol.h31
1 files changed, 26 insertions, 5 deletions
diff --git a/src/mesh/mesh2_protocol.h b/src/mesh/mesh2_protocol.h
index 2a312eff7..b96f43efc 100644
--- a/src/mesh/mesh2_protocol.h
+++ b/src/mesh/mesh2_protocol.h
@@ -45,12 +45,12 @@ extern "C"
45GNUNET_NETWORK_STRUCT_BEGIN 45GNUNET_NETWORK_STRUCT_BEGIN
46 46
47/** 47/**
48 * Message for mesh path management 48 * Message for mesh path creation.
49 */ 49 */
50struct GNUNET_MESH_ManipulatePath 50struct GNUNET_MESH_CreateTunnel
51{ 51{
52 /** 52 /**
53 * Type: GNUNET_MESSAGE_TYPE_MESH_PATH_[CREATE|CHANGE|ADD|DESTROY] 53 * Type: GNUNET_MESSAGE_TYPE_MESH_PATH_CREATE
54 * 54 *
55 * Size: sizeof(struct GNUNET_MESH_ManipulatePath) + 55 * Size: sizeof(struct GNUNET_MESH_ManipulatePath) +
56 * path_length * sizeof (struct GNUNET_PeerIdentity) 56 * path_length * sizeof (struct GNUNET_PeerIdentity)
@@ -69,17 +69,38 @@ struct GNUNET_MESH_ManipulatePath
69 uint32_t opt GNUNET_PACKED; 69 uint32_t opt GNUNET_PACKED;
70 70
71 /** 71 /**
72 * 64 bit alignment padding. 72 * Destination port.
73 */ 73 */
74 uint32_t reserved GNUNET_PACKED; 74 uint32_t port GNUNET_PACKED;
75 75
76 /** 76 /**
77 * FIXME do not add the first hop
77 * path_length structs defining the *whole* path from the origin [0] to the 78 * path_length structs defining the *whole* path from the origin [0] to the
78 * final destination [path_length-1]. 79 * final destination [path_length-1].
79 */ 80 */
80 /* struct GNUNET_PeerIdentity peers[path_length]; */ 81 /* struct GNUNET_PeerIdentity peers[path_length]; */
81}; 82};
82 83
84/**
85 * Message for mesh path destruction.
86 */
87struct GNUNET_MESH_DestroyTunnel
88{
89 /**
90 * Type: GNUNET_MESSAGE_TYPE_MESH_PATH_DESTROY
91 *
92 * Size: sizeof(struct GNUNET_MESH_ManipulatePath) +
93 * path_length * sizeof (struct GNUNET_PeerIdentity)
94 */
95 struct GNUNET_MessageHeader header;
96
97 /**
98 * Global id of the tunnel this path belongs to,
99 * unique in conjunction with the origin.
100 */
101 uint32_t tid GNUNET_PACKED;
102};
103
83 104
84/** 105/**
85 * Message for mesh data traffic to a particular destination from origin. 106 * Message for mesh data traffic to a particular destination from origin.