- expire old keys adaptively
[oweals/gnunet.git] / src / nse / nse.h
index 9a13d99b2e8e6b031846aa0ffac648c24500f42a..19f62897a5fc914a5606490fc78c3dfc17c7baae 100644 (file)
@@ -4,7 +4,7 @@
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
-     by the Free Software Foundation; either version 2, or (at your
+     by the Free Software Foundation; either version 3, or (at your
      option) any later version.
 
      GNUnet is distributed in the hope that it will be useful, but
 
 #include "gnunet_common.h"
 
-#define DEBUG_NSE GNUNET_YES
-
-#define VERIFY_CRYPTO GNUNET_NO
-
+GNUNET_NETWORK_STRUCT_BEGIN
 
 /**
  * Network size estimate sent from the service
 struct GNUNET_NSE_ClientMessage
 {
   /**
-   * Type: GNUNET_MESSAGE_TYPE_NSE_UPDATE
+   * Type: GNUNET_MESSAGE_TYPE_NSE_ESTIMATE
    */
   struct GNUNET_MessageHeader header;
 
   /**
    * For alignment.
    */
-  uint32_t reserved;
+  uint32_t reserved GNUNET_PACKED;
+
+  /**
+   * Timestamp at which the server received the message.
+   */
+  struct GNUNET_TIME_AbsoluteNBO timestamp;
 
   /**
    * The current estimated network size.
    */
-  double size_estimate;
+  double size_estimate GNUNET_PACKED;
 
   /**
    * The standard deviation (rounded down
    * to the nearest integer) of size
    * estimations.
    */
-  double std_deviation;
+  double std_deviation GNUNET_PACKED;
 };
-
+GNUNET_NETWORK_STRUCT_END
 
 #endif