diff options
author | Supriti Singh <supritisingh08@gmail.com> | 2014-09-22 15:12:15 +0000 |
---|---|---|
committer | Supriti Singh <supritisingh08@gmail.com> | 2014-09-22 15:12:15 +0000 |
commit | 3a85995c4a7a48f7afae1c554e9df3547ca7db3f (patch) | |
tree | bf4d46b158a973e4900e4792e80e860b324c2a0a /src/dht/dht.h | |
parent | b97fc3b79ac05184f0928af8071e76dcbd8f99ea (diff) | |
download | gnunet-3a85995c4a7a48f7afae1c554e9df3547ca7db3f.tar.gz gnunet-3a85995c4a7a48f7afae1c554e9df3547ca7db3f.zip |
- Act malicious API complete
- Using multiple trails in PUT/GET
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r-- | src/dht/dht.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h index f630e5a33..524cb4bda 100644 --- a/src/dht/dht.h +++ b/src/dht/dht.h | |||
@@ -442,6 +442,19 @@ struct GNUNET_DHT_MonitorGetRespMessage | |||
442 | }; | 442 | }; |
443 | 443 | ||
444 | #if ENABLE_MALICIOUS | 444 | #if ENABLE_MALICIOUS |
445 | |||
446 | /** | ||
447 | * Message to confirming receipt of ACT MALICIOUS, sent from DHT service to clients. | ||
448 | */ | ||
449 | struct GNUNET_DHT_ClientActMaliciousConfirmationMessage | ||
450 | { | ||
451 | /** | ||
452 | * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT_OK | ||
453 | */ | ||
454 | struct GNUNET_MessageHeader header; | ||
455 | }; | ||
456 | |||
457 | |||
445 | /** | 458 | /** |
446 | * Message to turn the service malicious | 459 | * Message to turn the service malicious |
447 | */ | 460 | */ |
@@ -453,7 +466,7 @@ struct GNUNET_DHT_ActMaliciousMessage | |||
453 | struct GNUNET_MessageHeader header; | 466 | struct GNUNET_MessageHeader header; |
454 | 467 | ||
455 | /** | 468 | /** |
456 | * Type of malicious behaviour expected; 0 turning peer benign | 469 | * If set to 1, act maliciously |
457 | */ | 470 | */ |
458 | uint32_t action; | 471 | uint32_t action; |
459 | }; | 472 | }; |