- Fix contidion for next round
[oweals/gnunet.git] / src / nse / nse.h
index 536834573c9492c087932db04dd4e652f61e9b92..de8bc5a21fe38a9e692aac11a1496ea33e1b7eb7 100644 (file)
@@ -35,6 +35,8 @@
  */
 #define DEBUG_NSE GNUNET_EXTRA_LOGGING
 
+GNUNET_NETWORK_STRUCT_BEGIN
+
 /**
  * Network size estimate sent from the service
  * to clients.  Contains the current size estimate
 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 +64,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