- expire old keys adaptively
[oweals/gnunet.git] / src / nse / nse.h
index 536834573c9492c087932db04dd4e652f61e9b92..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"
 
-/**
- * Generate debug-level log messages?
- */
-#define DEBUG_NSE GNUNET_EXTRA_LOGGING
+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.
@@ -62,15 +59,15 @@ struct GNUNET_NSE_ClientMessage
   /**
    * 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