#include "gnunet_common.h"
-#define DEBUG_NSE GNUNET_NO
-
-#define VERIFY_CRYPTO GNUNET_NO
+/**
+ * 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.
+ */
+ 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