Adding a function pick_random_friend ()
[oweals/gnunet.git] / src / dht / dht.h
index f630e5a33b987e706254182dc4c5721de7c4c300..c2728cd4348c712e7d095bf1c5b1d721a63cefad 100644 (file)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2001, 2002, 2003, 2004, 2009, 2011 Christian Grothoff (and other contributing authors)
+     Copyright (C) 2001, 2002, 2003, 2004, 2009, 2011 Christian Grothoff (and other contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -442,6 +442,19 @@ struct GNUNET_DHT_MonitorGetRespMessage
 };
 
 #if ENABLE_MALICIOUS
+
+/**
+ * Message to confirming receipt of ACT MALICIOUS, sent from DHT service to clients.
+ */
+struct GNUNET_DHT_ClientActMaliciousConfirmationMessage
+{
+  /**
+   * Type: #GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT_OK
+   */
+  struct GNUNET_MessageHeader header;
+};
+
+
 /**
  * Message to turn the service malicious
  */
@@ -453,7 +466,7 @@ struct GNUNET_DHT_ActMaliciousMessage
   struct GNUNET_MessageHeader header;
 
   /**
-   * Type of malicious behaviour expected; 0 turning peer benign
+   * If set to 1, act maliciously
    */
   uint32_t action;
 };