stuff
[oweals/gnunet.git] / src / transport / transport.h
index edbf166851a14a4a31503bb42fb0657487073e57..603f1bbc1e5d4e9c223175c3f253ba254d981c85 100644 (file)
@@ -23,6 +23,9 @@
  * @brief common internal definitions for transport service
  * @author Christian Grothoff
  */
+#ifndef TRANSPORT_H
+#define TRANSPORT_H
+
 #include "gnunet_crypto_lib.h"
 #include "gnunet_time_lib.h"
 #include "gnunet_transport_service.h"
@@ -64,6 +67,11 @@ struct ConnectInfoMessage
    */
   struct GNUNET_TIME_RelativeNBO latency;
 
+  /*
+   * Transport distance metric (i.e. hops for DV)
+   */
+  uint16_t distance;
+
   /**
    * Identity of the new neighbour.
    */
@@ -175,6 +183,11 @@ struct InboundMessage
    */
   struct GNUNET_PeerIdentity peer;
 
+  /*
+   * Distance metric.
+   */
+  uint16_t distance;
+
 };
 
 
@@ -299,3 +312,4 @@ struct BlacklistMessage
 
 
 /* end of transport.h */
+#endif