diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-08-05 16:27:13 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-08-05 16:27:13 +0000 |
commit | d5d82faf0c8ef87b9bd4171f3e880ff006ec693c (patch) | |
tree | d55cdf69e6e3e33f9709db2f120ae36f529305d9 /src/include/gnunet_sensor_util_lib.h | |
parent | 8a9baa7ae446c2eacb18a5290c98ae59bc2ad857 (diff) | |
download | gnunet-d5d82faf0c8ef87b9bd4171f3e880ff006ec693c.tar.gz gnunet-d5d82faf0c8ef87b9bd4171f3e880ff006ec693c.zip |
sensor: towards anomaly reporting
Diffstat (limited to 'src/include/gnunet_sensor_util_lib.h')
-rw-r--r-- | src/include/gnunet_sensor_util_lib.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/include/gnunet_sensor_util_lib.h b/src/include/gnunet_sensor_util_lib.h index b497d05d6..3ff6097c7 100644 --- a/src/include/gnunet_sensor_util_lib.h +++ b/src/include/gnunet_sensor_util_lib.h | |||
@@ -297,6 +297,44 @@ struct GNUNET_SENSOR_SensorFullMessage | |||
297 | 297 | ||
298 | }; | 298 | }; |
299 | 299 | ||
300 | /** | ||
301 | * Message carrying an anomaly status change report | ||
302 | */ | ||
303 | struct AnomalyReportMessage | ||
304 | { | ||
305 | |||
306 | /** | ||
307 | * Message header | ||
308 | */ | ||
309 | struct GNUNET_MessageHeader header; | ||
310 | |||
311 | /** | ||
312 | * Hash of sensor name | ||
313 | */ | ||
314 | struct GNUNET_HashCode sensorname_hash; | ||
315 | |||
316 | /** | ||
317 | * First part of sensor version number | ||
318 | */ | ||
319 | uint16_t sensorversion_major; | ||
320 | |||
321 | /** | ||
322 | * Second part of sensor version name | ||
323 | */ | ||
324 | uint16_t sensorversion_minor; | ||
325 | |||
326 | /** | ||
327 | * New anomaly status | ||
328 | */ | ||
329 | uint8_t anomalous; | ||
330 | |||
331 | /** | ||
332 | * Percentage of neighbors reported the same anomaly | ||
333 | */ | ||
334 | float anomalous_neighbors; | ||
335 | |||
336 | }; | ||
337 | |||
300 | GNUNET_NETWORK_STRUCT_END | 338 | GNUNET_NETWORK_STRUCT_END |
301 | 339 | ||
302 | /** | 340 | /** |