diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-04-22 15:04:42 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-04-22 15:04:42 +0000 |
commit | 761d07602380faac71c3d36f6b8c2c6fed410c5c (patch) | |
tree | 20801ce21dd1642eb8a6a184eef3c846c3ea017f /src/dv/dv.h | |
parent | 08ed5ee14a04740cad6ad7bc32eab59df5b36183 (diff) | |
download | gnunet-761d07602380faac71c3d36f6b8c2c6fed410c5c.tar.gz gnunet-761d07602380faac71c3d36f6b8c2c6fed410c5c.zip |
only committing in case of natural disater, not to be used
Diffstat (limited to 'src/dv/dv.h')
-rw-r--r-- | src/dv/dv.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/dv/dv.h b/src/dv/dv.h index b665b4d70..6f47441e4 100644 --- a/src/dv/dv.h +++ b/src/dv/dv.h | |||
@@ -29,6 +29,7 @@ | |||
29 | #include "gnunet_common.h" | 29 | #include "gnunet_common.h" |
30 | 30 | ||
31 | #define DEBUG_DV_GOSSIP GNUNET_NO | 31 | #define DEBUG_DV_GOSSIP GNUNET_NO |
32 | #define DEBUG_DV_GOSSIP_RECEIPT GNUNET_YES | ||
32 | #define DEBUG_DV GNUNET_YES | 33 | #define DEBUG_DV GNUNET_YES |
33 | #define DEBUG_DV_API GNUNET_YES | 34 | #define DEBUG_DV_API GNUNET_YES |
34 | 35 | ||
@@ -62,17 +63,17 @@ struct GNUNET_DV_MessageReceived | |||
62 | /** | 63 | /** |
63 | * The message that was sent | 64 | * The message that was sent |
64 | */ | 65 | */ |
65 | size_t msg_len; | 66 | uint32_t msg_len; |
66 | 67 | ||
67 | /** | 68 | /** |
68 | * The distance to the peer that we received the message from | 69 | * The distance to the peer that we received the message from |
69 | */ | 70 | */ |
70 | size_t distance; | 71 | uint32_t distance; |
71 | 72 | ||
72 | /** | 73 | /** |
73 | * Length of the sender address, appended to end of this message | 74 | * Length of the sender address, appended to end of this message |
74 | */ | 75 | */ |
75 | size_t sender_address_len; | 76 | uint32_t sender_address_len; |
76 | 77 | ||
77 | }; | 78 | }; |
78 | 79 | ||
@@ -102,12 +103,12 @@ struct GNUNET_DV_ConnectMessage | |||
102 | /** | 103 | /** |
103 | * The distance to the peer that we received the message from | 104 | * The distance to the peer that we received the message from |
104 | */ | 105 | */ |
105 | size_t distance; | 106 | uint32_t distance; |
106 | 107 | ||
107 | /** | 108 | /** |
108 | * Length of the sender address, appended to end of this message | 109 | * Length of the sender address, appended to end of this message |
109 | */ | 110 | */ |
110 | size_t sender_address_len; | 111 | uint32_t sender_address_len; |
111 | 112 | ||
112 | }; | 113 | }; |
113 | 114 | ||
@@ -128,19 +129,14 @@ struct GNUNET_DV_SendMessage | |||
128 | struct GNUNET_PeerIdentity target; | 129 | struct GNUNET_PeerIdentity target; |
129 | 130 | ||
130 | /** | 131 | /** |
131 | * The message(s) to be sent. | ||
132 | */ | ||
133 | char *msgbuf; | ||
134 | |||
135 | /** | ||
136 | * The size of the msgbuf | 132 | * The size of the msgbuf |
137 | */ | 133 | */ |
138 | size_t msgbuf_size; | 134 | uint32_t msgbuf_size; |
139 | 135 | ||
140 | /** | 136 | /** |
141 | * Message priority | 137 | * Message priority |
142 | */ | 138 | */ |
143 | size_t priority; | 139 | uint32_t priority; |
144 | 140 | ||
145 | /** | 141 | /** |
146 | * How long can we delay sending? | 142 | * How long can we delay sending? |
@@ -150,7 +146,12 @@ struct GNUNET_DV_SendMessage | |||
150 | /** | 146 | /** |
151 | * Size of the address (appended to end of struct) | 147 | * Size of the address (appended to end of struct) |
152 | */ | 148 | */ |
153 | size_t addrlen; | 149 | uint32_t addrlen; |
150 | |||
151 | /** | ||
152 | * The message(s) to be sent. | ||
153 | */ | ||
154 | char *msgbuf; | ||
154 | 155 | ||
155 | /* | 156 | /* |
156 | * Sender, appended to end of struct tells via whom | 157 | * Sender, appended to end of struct tells via whom |
@@ -185,7 +186,7 @@ typedef struct | |||
185 | /** | 186 | /** |
186 | * Neighbor ID to use when sending to this peer | 187 | * Neighbor ID to use when sending to this peer |
187 | */ | 188 | */ |
188 | unsigned int neighbor_id GNUNET_PACKED; | 189 | uint32_t neighbor_id GNUNET_PACKED; |
189 | 190 | ||
190 | } p2p_dv_MESSAGE_NeighborInfo; | 191 | } p2p_dv_MESSAGE_NeighborInfo; |
191 | 192 | ||