- filter for expected message type
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 6 Jul 2012 09:06:56 +0000 (09:06 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 6 Jul 2012 09:06:56 +0000 (09:06 +0000)
src/transport/gnunet-transport.c

index 65c574f622b2f2cc2dc14a14561284f2c734d8df..b70c9c4b00467eff96436c3e514b13f569a77057 100644 (file)
@@ -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));