aboutsummaryrefslogtreecommitdiff
path: root/src/setu/setu.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-19 17:54:21 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-19 17:54:21 +0200
commit1ca1140d4602dcc5c66da0d1ab1b082db9258ead (patch)
tree4a57b97b7f5f4f2b93f67bd8d39e890f3fa67dc3 /src/setu/setu.h
parentaa2b84ff8caed28aec31e9a39375a02fceeb4e8c (diff)
downloadgnunet-1ca1140d4602dcc5c66da0d1ab1b082db9258ead.tar.gz
gnunet-1ca1140d4602dcc5c66da0d1ab1b082db9258ead.zip
-implement the symmetric option in setu
Diffstat (limited to 'src/setu/setu.h')
-rw-r--r--src/setu/setu.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/setu/setu.h b/src/setu/setu.h
index f1c5df92b..e9a0def95 100644
--- a/src/setu/setu.h
+++ b/src/setu/setu.h
@@ -111,10 +111,16 @@ struct GNUNET_SETU_AcceptMessage
111 uint8_t byzantine; 111 uint8_t byzantine;
112 112
113 /** 113 /**
114 * #GNUNET_YES to also send back set elements we are sending to
115 * the remote peer.
116 */
117 uint8_t symmetric;
118
119 /**
114 * Lower bound for the set size, used only when 120 * Lower bound for the set size, used only when
115 * byzantine mode is enabled. 121 * byzantine mode is enabled.
116 */ 122 */
117 uint8_t byzantine_lower_bound; 123 uint32_t byzantine_lower_bound;
118}; 124};
119 125
120 126
@@ -209,10 +215,15 @@ struct GNUNET_SETU_EvaluateMessage
209 uint8_t byzantine; 215 uint8_t byzantine;
210 216
211 /** 217 /**
218 * Also return set elements we are sending to the remote peer.
219 */
220 uint8_t symmetric;
221
222 /**
212 * Lower bound for the set size, used only when 223 * Lower bound for the set size, used only when
213 * byzantine mode is enabled. 224 * byzantine mode is enabled.
214 */ 225 */
215 uint8_t byzantine_lower_bound; 226 uint32_t byzantine_lower_bound;
216 227
217 /* rest: context message, that is, application-specific 228 /* rest: context message, that is, application-specific
218 message to convince listener to pick up */ 229 message to convince listener to pick up */