*
* @param destination where to go
* @param path which path to take (may not be the full path)
+ * @param off offset of @a destination on @a path
* @param options options for the connection
* @param ct which tunnel uses this connection
* @param init_state initial state for the connection
static struct CadetConnection *
connection_create (struct CadetPeer *destination,
struct CadetPeerPath *path,
+ unsigned int off,
enum GNUNET_CADET_ChannelOption options,
struct CadetTConnection *ct,
const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid,
{
struct CadetConnection *cc;
struct CadetPeer *first_hop;
- unsigned int off;
- off = GCPP_find_peer (path,
- destination);
- GNUNET_assert (UINT_MAX > off);
cc = GNUNET_new (struct CadetConnection);
cc->options = options;
cc->state = init_state;
struct CadetConnection *
GCC_create_inbound (struct CadetPeer *destination,
struct CadetPeerPath *path,
- enum GNUNET_CADET_ChannelOption options,
+ enum GNUNET_CADET_ChannelOption options,
struct CadetTConnection *ct,
const struct GNUNET_CADET_ConnectionTunnelIdentifier *cid,
GCC_ReadyCallback ready_cb,
return connection_create (destination,
path,
+ off,
options,
ct,
cid,
*
* @param destination where to go
* @param path which path to take (may not be the full path)
+ * @param off offset of @a destination on @a path
* @param options options for the connection
* @param ct tunnel that uses the connection
* @param ready_cb function to call when ready to transmit
struct CadetConnection *
GCC_create (struct CadetPeer *destination,
struct CadetPeerPath *path,
+ unsigned int off,
enum GNUNET_CADET_ChannelOption options,
struct CadetTConnection *ct,
GCC_ReadyCallback ready_cb,
sizeof (cid));
return connection_create (destination,
path,
+ off,
options,
ct,
&cid,
*
* @param destination where to go
* @param path which path to take (may not be the full path)
+ * @param off offset of @a destination on @a path
* @param options options for the connection
* @param ct which tunnel uses this connection
* @param ready_cb function to call when ready to transmit
struct CadetConnection *
GCC_create (struct CadetPeer *destination,
struct CadetPeerPath *path,
+ unsigned int off,
enum GNUNET_CADET_ChannelOption options,
struct CadetTConnection *ct,
GCC_ReadyCallback ready_cb,