-revert of address_bw addition
[oweals/gnunet.git] / src / ats / ats.h
index 30ca29580463704b0bf1180c1bb66641efaff17b..48c8a35d542b0833302bd722352fa9257f0466c4 100644 (file)
@@ -61,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
 {
@@ -70,12 +79,15 @@ struct AddressUpdateMessage
 
   struct GNUNET_PeerIdentity peer;
 
+
   uint16_t address_length GNUNET_PACKED;
 
   uint16_t plugin_name_length GNUNET_PACKED;
 
   uint32_t session_id GNUNET_PACKED;
 
+  uint32_t address_local_info GNUNET_PACKED;
+
   /* followed by:
    * - struct GNUNET_ATS_Information [ats_count];
    * - char address[address_length]
@@ -98,6 +110,8 @@ struct AddressUseMessage
 
   uint32_t session_id GNUNET_PACKED;
 
+  uint32_t address_local_info GNUNET_PACKED;
+
   /* followed by:
    * - char address[address_length]
    * - char plugin_name[plugin_name_length] (including '\0'-termination).
@@ -120,6 +134,8 @@ struct AddressDestroyedMessage
 
   uint32_t session_id GNUNET_PACKED;
 
+  uint32_t address_local_info GNUNET_PACKED;
+
   /* followed by:
    * - char address[address_length]
    * - char plugin_name[plugin_name_length] (including '\0'-termination).
@@ -142,6 +158,8 @@ struct AddressSuggestionMessage
 
   uint32_t session_id GNUNET_PACKED;
 
+  uint32_t address_local_info GNUNET_PACKED;
+
   struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out;
 
   struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in;
@@ -161,6 +179,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;
@@ -180,6 +202,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;
@@ -236,6 +270,34 @@ struct ChangePreferenceMessage
   /* followed by 'num_preferences'
    * struct PreferenceInformation values */
 };
+
+
+/**
+ * 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