added simulation
[oweals/gnunet.git] / src / ats / ats.h
index 5b9fa869682fd0af504a6b37bf1745c45e43c512..4f8ab1b81d6ec8843f4230e5ab60aff7027a7e4b 100644 (file)
@@ -39,6 +39,7 @@ enum StartFlag
   START_FLAG_PERFORMANCE_NO_PIC = 2
 };
 
+GNUNET_NETWORK_STRUCT_BEGIN
 
 struct ClientStartMessage
 {
@@ -60,6 +61,15 @@ struct RequestAddressMessage
   struct GNUNET_PeerIdentity peer;
 };
 
+struct ResetBackoffMessage
+{
+  struct GNUNET_MessageHeader header;
+
+  uint32_t reserved GNUNET_PACKED;
+
+  struct GNUNET_PeerIdentity peer;
+};
+
 
 struct AddressUpdateMessage
 {
@@ -160,6 +170,10 @@ struct PeerInformationMessage
 
   uint32_t ats_count GNUNET_PACKED;
 
+  uint32_t address_active GNUNET_PACKED;
+
+  uint32_t id GNUNET_PACKED;
+
   struct GNUNET_PeerIdentity peer;
 
   uint16_t address_length GNUNET_PACKED;
@@ -179,6 +193,18 @@ struct PeerInformationMessage
 };
 
 
+struct AddressListRequestMessage
+{
+  struct GNUNET_MessageHeader header;
+
+  uint32_t id GNUNET_PACKED;
+
+  int32_t all GNUNET_PACKED;
+
+  struct GNUNET_PeerIdentity peer;
+};
+
+
 struct ReservationRequestMessage
 {
   struct GNUNET_MessageHeader header;
@@ -214,7 +240,6 @@ struct ReservationResultMessage
   struct GNUNET_TIME_RelativeNBO res_delay;
 };
 
-
 struct PreferenceInformation
 {
 
@@ -238,5 +263,34 @@ struct ChangePreferenceMessage
 };
 
 
+/**
+ * Message containing application feedback for a peer
+ */
+struct FeedbackPreferenceMessage
+{
+  struct GNUNET_MessageHeader header;
+
+  /**
+   * Number of feedback values included
+   */
+  uint32_t num_feedback GNUNET_PACKED;
+
+  /**
+   * Relative time describing for which time interval this feedback is
+   */
+  struct GNUNET_TIME_RelativeNBO scope;
+
+  /**
+   * Peer this feedback is for
+   */
+  struct GNUNET_PeerIdentity peer;
+
+  /* followed by 'num_feedback'
+   * struct PreferenceInformation values */
+};
+
+GNUNET_NETWORK_STRUCT_END
+
+
 
 #endif