diff options
Diffstat (limited to 'src/set/set_protocol.h')
-rw-r--r-- | src/set/set_protocol.h | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/src/set/set_protocol.h b/src/set/set_protocol.h index 632e45963..9d39abba8 100644 --- a/src/set/set_protocol.h +++ b/src/set/set_protocol.h | |||
@@ -101,11 +101,6 @@ struct BFMessage | |||
101 | struct GNUNET_MessageHeader header; | 101 | struct GNUNET_MessageHeader header; |
102 | 102 | ||
103 | /** | 103 | /** |
104 | * Padding, must be 0. | ||
105 | */ | ||
106 | uint8_t reserved; | ||
107 | |||
108 | /** | ||
109 | * mutator used with this bloomfilter. | 104 | * mutator used with this bloomfilter. |
110 | */ | 105 | */ |
111 | uint32_t sender_element_count GNUNET_PACKED; | 106 | uint32_t sender_element_count GNUNET_PACKED; |
@@ -126,6 +121,28 @@ struct BFMessage | |||
126 | uint32_t bloomfilter_length GNUNET_PACKED; | 121 | uint32_t bloomfilter_length GNUNET_PACKED; |
127 | 122 | ||
128 | /** | 123 | /** |
124 | * Length of the bloomfilter data | ||
125 | */ | ||
126 | uint32_t bits_per_element GNUNET_PACKED; | ||
127 | |||
128 | /** | ||
129 | * rest: the sender's bloomfilter | ||
130 | */ | ||
131 | }; | ||
132 | |||
133 | struct BFPart | ||
134 | { | ||
135 | /** | ||
136 | * Type: GNUNET_MESSAGE_TYPE_SET_INTERSECTION_P2P_BF | ||
137 | */ | ||
138 | struct GNUNET_MessageHeader header; | ||
139 | |||
140 | /** | ||
141 | * Length of the appended bloomfilter data block | ||
142 | */ | ||
143 | uint32_t bloomfilter_length GNUNET_PACKED; | ||
144 | |||
145 | /** | ||
129 | * offset in the bloolfilter data block, if multipart message | 146 | * offset in the bloolfilter data block, if multipart message |
130 | */ | 147 | */ |
131 | uint32_t bloomfilter_offset GNUNET_PACKED; | 148 | uint32_t bloomfilter_offset GNUNET_PACKED; |