-revert of address_bw addition
[oweals/gnunet.git] / src / ats / ats.h
index 009a1609d1fe2f4d45ba937162e7771474f51207..48c8a35d542b0833302bd722352fa9257f0466c4 100644 (file)
@@ -79,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]
@@ -107,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).
@@ -129,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).
@@ -151,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;
@@ -172,6 +181,8 @@ struct PeerInformationMessage
 
   uint32_t address_active GNUNET_PACKED;
 
+  uint32_t id GNUNET_PACKED;
+
   struct GNUNET_PeerIdentity peer;
 
   uint16_t address_length GNUNET_PACKED;
@@ -190,10 +201,13 @@ struct PeerInformationMessage
 
 };
 
+
 struct AddressListRequestMessage
 {
   struct GNUNET_MessageHeader header;
 
+  uint32_t id GNUNET_PACKED;
+
   int32_t all GNUNET_PACKED;
 
   struct GNUNET_PeerIdentity peer;
@@ -256,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