#define MESH_DEBUG GNUNET_YES
-#define INITIAL_WINDOW_SIZE 8
-#define ACK_THRESHOLD INITIAL_WINDOW_SIZE / 2
-
#include "platform.h"
#include "gnunet_common.h"
#include "gnunet_util_lib.h"
* sizeof(uint16_t) * types
*/
struct GNUNET_MessageHeader header;
- uint16_t types GNUNET_PACKED;
- /* uint16_t list_types[types] */
+ /* uint32_t list_ports[] */
};
*/
typedef uint32_t MESH_TunnelNumber;
+
/**
* Message for a client to create and destroy tunnels.
*/
{
/**
* Type: GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_[CREATE|DESTROY]
- * GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_[MAX|MIN]
*
* Size: sizeof(struct GNUNET_MESH_TunnelMessage)
*/
* Tunnel's peer
*/
struct GNUNET_PeerIdentity peer;
+
+ /**
+ * Port of the tunnel.
+ */
+ uint32_t port GNUNET_PACKED;
};
*/
struct GNUNET_PeerIdentity peer;
+ /**
+ * Port for this tunnel
+ */
+ uint32_t port GNUNET_PACKED;
+
/**
* Tunnel options (speed, buffering)
*/
- uint32_t opt;
+ uint32_t opt GNUNET_PACKED;
};
/**
* ID of the last packet allowed.
*/
- uint32_t max_pid GNUNET_PACKED;
+ uint32_t ack GNUNET_PACKED;
};