*/
uint32_t tid GNUNET_PACKED;
+ /**
+ * Number of hops to live
+ */
+ uint32_t ttl GNUNET_PACKED;
+
+ /**
+ * Unique ID of the packet
+ */
+ uint32_t pid GNUNET_PACKED;
+
/**
* OID of the tunnel
*/
/**
- * Message to acknowledte mesh data traffic.
+ * Message to acknowledge mesh data traffic.
*/
struct GNUNET_MESH_ACK
{
struct GNUNET_PeerIdentity oid;
/**
- * Sender of the message.
+ * Maximum packet ID authorized.
*/
- struct GNUNET_PeerIdentity sender;
+ uint32_t pid;
- /**
- * Payload follows
- */
+};
+
+/**
+ * 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 to destroy a tunnel
+ */
+struct GNUNET_MESH_TunnelKeepAlive
+{
+ /**
+ * Type: GNUNET_MESSAGE_TYPE_MESH_PATH_KEEPALIVE
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * TID of the tunnel
+ */
+ uint32_t tid GNUNET_PACKED;
+
+ /**
+ * OID of the tunnel
+ */
+ struct GNUNET_PeerIdentity oid;
+};
+
+
+
GNUNET_NETWORK_STRUCT_END
#if 0 /* keep Emacsens' auto-indent happy */