- New mesh message
authorBart Polot <bart@net.in.tum.de>
Thu, 4 Oct 2012 12:25:14 +0000 (12:25 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 4 Oct 2012 12:25:14 +0000 (12:25 +0000)
src/mesh/mesh_protocol.h

index 38c57607bb44a125548b6c8a8141ee5be6dba0f9..e835429441081c8bce16e6ba811ac5bb93571bd9 100644 (file)
@@ -226,6 +226,33 @@ struct GNUNET_MESH_ACK
 
 };
 
+/**
+ * Message to query a peer about its Flow Control status regarding a tunnel.
+ */
+struct GNUNET_MESH_Poll
+{
+  /**
+   * Type: GNUNET_MESSAGE_TYPE_MESH_POLL
+   */
+  struct GNUNET_MessageHeader header;
+  
+  /**
+   * TID of the tunnel
+   */
+  uint32_t tid GNUNET_PACKED;
+  
+  /**
+   * OID of the tunnel
+   */
+  struct GNUNET_PeerIdentity oid;
+  
+  /**
+   * Last ACK received.
+   */
+  uint32_t last_ack;
+  
+};
+
 /**
  * Message for ack'ing a path
  */