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:
0eaa5f0
)
- filter for expected message type
author
Matthias Wachs
<wachs@net.in.tum.de>
Fri, 6 Jul 2012 09:06:56 +0000
(09:06 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Fri, 6 Jul 2012 09:06:56 +0000
(09:06 +0000)
src/transport/gnunet-transport.c
patch
|
blob
|
history
diff --git
a/src/transport/gnunet-transport.c
b/src/transport/gnunet-transport.c
index 65c574f622b2f2cc2dc14a14561284f2c734d8df..b70c9c4b00467eff96436c3e514b13f569a77057 100644
(file)
--- a/
src/transport/gnunet-transport.c
+++ b/
src/transport/gnunet-transport.c
@@
-493,6
+493,8
@@
notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
{
if (!benchmark_receive)
return;
+ if (GNUNET_MESSAGE_TYPE_DUMMY != ntohs (message->type))
+ return;
if (verbosity > 0)
FPRINTF (stdout, _("Received %u bytes from %s\n"),
(unsigned int) ntohs (message->size), GNUNET_i2s (peer));