[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11789 - gnunet/src/dv
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11789 - gnunet/src/dv |
Date: |
Thu, 17 Jun 2010 18:56:13 +0200 |
Author: nevans
Date: 2010-06-17 18:56:13 +0200 (Thu, 17 Jun 2010)
New Revision: 11789
Modified:
gnunet/src/dv/dv.h
Log:
alignment
Modified: gnunet/src/dv/dv.h
===================================================================
--- gnunet/src/dv/dv.h 2010-06-17 16:45:51 UTC (rev 11788)
+++ gnunet/src/dv/dv.h 2010-06-17 16:56:13 UTC (rev 11789)
@@ -28,7 +28,7 @@
#include "gnunet_common.h"
-#define DEBUG_DV_GOSSIP GNUNET_NO
+#define DEBUG_DV_GOSSIP GNUNET_YES
#define DEBUG_DV_GOSSIP_SEND GNUNET_NO
#define DEBUG_DV_GOSSIP_RECEIPT GNUNET_NO
#define DEBUG_DV_MESSAGES GNUNET_NO
@@ -46,7 +46,7 @@
/**
* DV Message, contains a message that was received
- * via DV for this peer!
+ * via DV for this peer! Internal.
*
* Sender address is copied to the end of this struct,
* followed by the actual message received.
@@ -83,6 +83,7 @@
/**
* DV Message, indicates that we have learned of a new DV level peer.
+ * Internal.
*
* Sender address is copied to the end of this struct.
*/
@@ -116,7 +117,8 @@
};
/**
- * Message to return result from a send attempt
+ * Message to return result from a send attempt.
+ * Internal.
*/
struct GNUNET_DV_SendResultMessage
{
@@ -138,7 +140,8 @@
};
/**
- * Message to send a message over DV via a specific peer
+ * Message to send a message over DV via a specific peer.
+ * Internal.
*/
struct GNUNET_DV_SendMessage
{
@@ -200,7 +203,7 @@
/**
* Cost from received from node to neighbor node, takes distance into account
*/
- unsigned int cost GNUNET_PACKED;
+ uint32_t cost GNUNET_PACKED;
/**
* Identity of neighbor we learned information about
@@ -226,27 +229,32 @@
{
struct GNUNET_MessageHeader header;
+#if TRACK_MESSAGES
/**
+ * Unique ID for this message.
+ */
+ uint32_t uid GNUNET_PACKED;
+#else
+ /*
+ * Alignment.
+ */
+ uint32_t reserved GNUNET_PACKED;
+#endif
+
+ /**
* Identity of peer that ultimately sent the message.
* Should be looked up in the set of 'neighbor_id's of
* the referring peer.
*/
- unsigned int sender GNUNET_PACKED;
+ uint32_t sender GNUNET_PACKED;
/**
* Identity of neighbor this message is going to. Should
* be looked up in the set of our own identifiers for
* neighbors!
*/
- unsigned int recipient GNUNET_PACKED;
+ uint32_t recipient GNUNET_PACKED;
-#if TRACK_MESSAGES
- /**
- * Unique ID for this message.
- */
- unsigned int uid GNUNET_PACKED;
-#endif
-
} p2p_dv_MESSAGE_Data;
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11789 - gnunet/src/dv,
gnunet <=