added ATS information to InboundMessage
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 30 Nov 2010 10:25:17 +0000 (10:25 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 30 Nov 2010 10:25:17 +0000 (10:25 +0000)
src/transport/transport.h

index 237f3158139055e986bdee8bb50d8ba7fd4706cb..747986439c211a7c0f0393e4b4743bc63288868b 100644 (file)
@@ -189,6 +189,12 @@ struct InboundMessage
    */
   uint32_t reserved GNUNET_PACKED;
 
+  /**
+   * Number of ATS key-value pairs that follow this struct
+   * (excluding the 0-terminator).
+   */
+  uint32_t ats_count GNUNET_PACKED;
+
   /**
    * Latency estimate.
    */
@@ -204,6 +210,11 @@ struct InboundMessage
    */
   uint32_t distance;
 
+  /**
+   * First of the ATS information blocks (we must have at least
+   * one due to the 0-termination requirement).
+   */
+  struct GNUNET_TRANSPORT_ATS_Information ats;
 };