#include "gnunet_core_service.h"
#include "cadet_protocol.h"
+
+#define LOG(level, ...) GNUNET_log_from(level,"cadet-cor",__VA_ARGS__)
+
+
/**
* Number of messages we are willing to buffer per route.
*/
return;
}
- path = GCPP_get_path_from_route (path_length,
+ path = GCPP_get_path_from_route (path_length - 1,
pids);
origin = GCP_get (&pids[0],
GNUNET_YES);
*/
static void
handle_connection_create_ack (void *cls,
- const struct GNUNET_CADET_ConnectionCreateMessageAckMessage *msg)
+ const struct GNUNET_CADET_ConnectionCreateAckMessage *msg)
{
struct CadetPeer *peer = cls;
struct CadetConnection *cc;
GNUNET_break_op (0);
return;
}
- GCC_handle_connection_ack (cc);
+ GCC_handle_connection_create_ack (cc);
return;
}
NULL),
GNUNET_MQ_hd_fixed_size (connection_create_ack,
GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE_ACK,
- struct GNUNET_CADET_ConnectionCreateMessageAckMessage,
+ struct GNUNET_CADET_ConnectionCreateAckMessage,
NULL),
GNUNET_MQ_hd_fixed_size (connection_broken,
GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN,