projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac43047
)
- additional debug message for mantis 2214
author
Matthias Wachs
<wachs@net.in.tum.de>
Tue, 3 Apr 2012 08:39:27 +0000
(08:39 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Tue, 3 Apr 2012 08:39:27 +0000
(08:39 +0000)
src/transport/plugin_transport_tcp.c
patch
|
blob
|
history
diff --git
a/src/transport/plugin_transport_tcp.c
b/src/transport/plugin_transport_tcp.c
index 2fa96b464949d4e2cc0796d6e81ec6d77940bcb4..2753ba2192c73a8ab5109cbe0e2dbe163d50a5ff 100644
(file)
--- a/
src/transport/plugin_transport_tcp.c
+++ b/
src/transport/plugin_transport_tcp.c
@@
-1850,6
+1850,14
@@
handle_tcp_data (void *cls, struct GNUNET_SERVER_Client *client,
if (NULL == session)
{
/* No inbound session found */
+ void *vaddr;
+ size_t alen;
+ GNUNET_SERVER_client_get_address (client, &vaddr, &alen);
+ GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, "tcp",
+ "Received unexpected %u bytes of type %u from `%s'\n",
+ (unsigned int) ntohs (message->size),
+ (unsigned int) ntohs (message->type),
+ GNUNET_a2s(vaddr, alen));
GNUNET_break_op (0);
GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
return;