From: Matthias Wachs Date: Fri, 6 Jul 2012 09:06:56 +0000 (+0000) Subject: - filter for expected message type X-Git-Tag: initial-import-from-subversion-38251~12617 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=232fe056c0b1e9a1f5e9046dd165f47930782b82;p=oweals%2Fgnunet.git - filter for expected message type --- diff --git a/src/transport/gnunet-transport.c b/src/transport/gnunet-transport.c index 65c574f62..b70c9c4b0 100644 --- 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));