diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-11-27 20:17:24 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-11-27 20:17:24 +0000 |
commit | f23525cfc0c0a8931db0b20b35c1aabbfbc5ac4e (patch) | |
tree | 3ef89bce9f65613c8f697c04b4280e14091d1ace /src/set/set.h | |
parent | 1dc3a88ad71d1ca99bed5d38977d69f88de3d253 (diff) | |
download | gnunet-f23525cfc0c0a8931db0b20b35c1aabbfbc5ac4e.tar.gz gnunet-f23525cfc0c0a8931db0b20b35c1aabbfbc5ac4e.zip |
use separate struct for just sending #elements in set, and check message size before casting
Diffstat (limited to 'src/set/set.h')
-rw-r--r-- | src/set/set.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/set/set.h b/src/set/set.h index 944881b63..f688ccf72 100644 --- a/src/set/set.h +++ b/src/set/set.h | |||
@@ -188,6 +188,12 @@ struct GNUNET_SET_EvaluateMessage | |||
188 | }; | 188 | }; |
189 | 189 | ||
190 | 190 | ||
191 | /** | ||
192 | * Message sent by the service to the client to indicate an | ||
193 | * element that is removed (set intersection) or added | ||
194 | * (set union) or part of the final result, depending on | ||
195 | * options specified for the operation. | ||
196 | */ | ||
191 | struct GNUNET_SET_ResultMessage | 197 | struct GNUNET_SET_ResultMessage |
192 | { | 198 | { |
193 | /** | 199 | /** |
@@ -207,8 +213,7 @@ struct GNUNET_SET_ResultMessage | |||
207 | uint16_t result_status GNUNET_PACKED; | 213 | uint16_t result_status GNUNET_PACKED; |
208 | 214 | ||
209 | /** | 215 | /** |
210 | * Type of the element attachted to the message, | 216 | * Type of the element attachted to the message, if any. |
211 | * if any. | ||
212 | */ | 217 | */ |
213 | uint16_t element_type GNUNET_PACKED; | 218 | uint16_t element_type GNUNET_PACKED; |
214 | 219 | ||