aboutsummaryrefslogtreecommitdiff
path: root/src/dht/dht.h
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2014-06-06 12:01:32 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2014-06-06 12:01:32 +0000
commit62e273beeae391a44615e350e48f4ee40f2eab7a (patch)
tree9137da71304165f148468c3135d91a4da9bff967 /src/dht/dht.h
parentbdfda4dd17faf721d82bfee411dcaf2777012a9f (diff)
downloadgnunet-62e273beeae391a44615e350e48f4ee40f2eab7a.tar.gz
gnunet-62e273beeae391a44615e350e48f4ee40f2eab7a.zip
Enable (X)DHT service to be compiled with malicious code.
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r--src/dht/dht.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h
index 86fbc16bb..f630e5a33 100644
--- a/src/dht/dht.h
+++ b/src/dht/dht.h
@@ -441,6 +441,24 @@ struct GNUNET_DHT_MonitorGetRespMessage
441 441
442}; 442};
443 443
444#if ENABLE_MALICIOUS
445/**
446 * Message to turn the service malicious
447 */
448struct GNUNET_DHT_ActMaliciousMessage
449{
450 /**
451 * Type: #GNUNET_MESSAGE_TYPE_ACT_MALICIOUS
452 */
453 struct GNUNET_MessageHeader header;
454
455 /**
456 * Type of malicious behaviour expected; 0 turning peer benign
457 */
458 uint32_t action;
459};
460#endif
461
444GNUNET_NETWORK_STRUCT_END 462GNUNET_NETWORK_STRUCT_END
445 463
446#endif 464#endif