h->th = NULL;
if ((0 == size) || (NULL == buf))
{
- LOG (GNUNET_ERROR_TYPE_DEBUG, "Received NULL callback\n");
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Received NULL send callback\n");
reconnect (h);
return 0;
}
t = th->tunnel;
if (GNUNET_YES == th_is_payload (th))
{
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " payload\n");
if (t->max_pid < t->pid && ! PID_OVERFLOW (t->pid, t->max_pid)) {
/* This tunnel is not ready to transmit yet, try next message */
next = th->next;
else
{
struct GNUNET_MessageHeader *mh = (struct GNUNET_MessageHeader *) &th[1];
+
LOG (GNUNET_ERROR_TYPE_DEBUG, " mesh traffic, type %u\n",
ntohs (mh->type));
memcpy (cbuf, &th[1], th->size);
{
int request = GNUNET_NO;
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " head not empty\n");
for (th = h->th_head; NULL != th; th = th->next)
{
struct GNUNET_MESH_Tunnel *t = th->tunnel;
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " [%p] notify: %p, size %u\n",
+ th, th->notify, th->size);
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " pid %u, max %u\n", t->pid, t->max_pid);
+
if (GNUNET_NO == th_is_payload (th) ||
(t->max_pid >= t->pid || PID_OVERFLOW (t->pid, t->max_pid)))
{