[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31293 - gnunet/src/testbed
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31293 - gnunet/src/testbed |
Date: |
Thu, 12 Dec 2013 08:27:06 +0100 |
Author: harsha
Date: 2013-12-12 08:27:06 +0100 (Thu, 12 Dec 2013)
New Revision: 31293
Modified:
gnunet/src/testbed/testbed.h
gnunet/src/testbed/testbed_api_underlay.c
Log:
- underlay link model message
Modified: gnunet/src/testbed/testbed.h
===================================================================
--- gnunet/src/testbed/testbed.h 2013-12-11 22:50:10 UTC (rev 31292)
+++ gnunet/src/testbed/testbed.h 2013-12-12 07:27:06 UTC (rev 31293)
@@ -770,6 +770,41 @@
};
+/**
+ * Message to send underlay link model of a peer. This message will be
+ * forwarded to the controller running the peer.
+ */
+struct GNUNET_TESTBED_UnderlayLinkModelMsg
+{
+ /**
+ * Type is GNUNET_MESSAGE_TYPE_UNDERLAYLINKMODELMSG
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * The number of peer entries contained in this message
+ */
+ uint32_t nentries GNUNET_PACKED;
+
+ /**
+ * The number of link properties contained in this message
+ */
+ uint32_t nprops GNUNET_PACKED;
+
+ /**
+ * Array of ids of peers to be in the blacklist/whitelist. Each id is of
type
+ * uint32_t. Number of ids should be equal to nentries.
+ */
+
+ /**
+ * Array of link properties. Each link property is to be arraged in a
+ * sequence of four integers of type uint32_t: peer_id, latency, loss and
+ * bandwidth.
+ */
+
+};
+
+
/**************************************/
/* Barriers IPC messages and protocol */
/**************************************/
Modified: gnunet/src/testbed/testbed_api_underlay.c
===================================================================
--- gnunet/src/testbed/testbed_api_underlay.c 2013-12-11 22:50:10 UTC (rev
31292)
+++ gnunet/src/testbed/testbed_api_underlay.c 2013-12-12 07:27:06 UTC (rev
31293)
@@ -38,6 +38,11 @@
struct LinkProperty *next;
/**
+ * the peer whose link is defined by these properties
+ */
+ struct GNUNET_TESTBED_Peer *peer;
+
+ /**
* latency of the link in microseconds
*/
uint32_t latency;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31293 - gnunet/src/testbed,
gnunet <=