aboutsummaryrefslogtreecommitdiff
path: root/src/mesh
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-07-18 12:22:33 +0000
committerBart Polot <bart@net.in.tum.de>2013-07-18 12:22:33 +0000
commit845c691c35ec1cb091deb361e4cc243b52bc287f (patch)
tree2aa7ee9afdaf965558af8731a2dc8af87ab50406 /src/mesh
parentc6957be28c9d6a179eebb1e0c542c3096fdc36a6 (diff)
downloadgnunet-845c691c35ec1cb091deb361e4cc243b52bc287f.tar.gz
gnunet-845c691c35ec1cb091deb361e4cc243b52bc287f.zip
- debug
Diffstat (limited to 'src/mesh')
-rw-r--r--src/mesh/mesh_api.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c
index e7a3ae806..ec4396a70 100644
--- a/src/mesh/mesh_api.c
+++ b/src/mesh/mesh_api.c
@@ -1195,17 +1195,22 @@ send_callback (void *cls, size_t size, void *buf)
1195 GNUNET_assert (size >= psize); 1195 GNUNET_assert (size >= psize);
1196 dmsg->header.size = htons (psize); 1196 dmsg->header.size = htons (psize);
1197 dmsg->tid = htonl (t->tid); 1197 dmsg->tid = htonl (t->tid);
1198 dmsg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA);
1199 LOG (GNUNET_ERROR_TYPE_DEBUG, "# payload type %s\n",
1200 GNUNET_MESH_DEBUG_M2S (ntohs (mh->type)));
1201 }
1202 else
1203 {
1204 LOG (GNUNET_ERROR_TYPE_DEBUG,
1205 "# callback returned size 0, "
1206 "application canceled transmission\n");
1198 } 1207 }
1199 dmsg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_DATA);
1200 LOG (GNUNET_ERROR_TYPE_DEBUG, "# payload type %s\n",
1201 GNUNET_MESH_DEBUG_M2S (ntohs (mh->type)));
1202
1203 } 1208 }
1204 else 1209 else
1205 { 1210 {
1206 struct GNUNET_MessageHeader *mh = (struct GNUNET_MessageHeader *) &th[1]; 1211 struct GNUNET_MessageHeader *mh = (struct GNUNET_MessageHeader *) &th[1];
1207 1212
1208 LOG (GNUNET_ERROR_TYPE_DEBUG, "# mesh traffic, type %s\n", 1213 LOG (GNUNET_ERROR_TYPE_DEBUG, "# mesh internal traffic, type %s\n",
1209 GNUNET_MESH_DEBUG_M2S (ntohs (mh->type))); 1214 GNUNET_MESH_DEBUG_M2S (ntohs (mh->type)));
1210 memcpy (cbuf, &th[1], th->size); 1215 memcpy (cbuf, &th[1], th->size);
1211 psize = th->size; 1216 psize = th->size;