add statistic to track estimated network diameter
[oweals/gnunet.git] / src / nse / nse.h
index 45748b1f38b29bd573c4bf8cb8fd50c61babe442..91b629657c0829dddfd2300feca5cc233853e3d7 100644 (file)
 
 #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
 
 /**
  * Network size estimate sent from the service
@@ -52,7 +52,7 @@ struct GNUNET_NSE_ClientMessage
   /**
    * For alignment.
    */
-  uint32_t reserved;
+  uint32_t reserved GNUNET_PACKED;
 
   /**
    * Timestamp at which the server received the message.
@@ -62,14 +62,14 @@ 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;
 };