receive set_quota messages
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 9 Nov 2011 20:45:46 +0000 (20:45 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 9 Nov 2011 20:45:46 +0000 (20:45 +0000)
src/transport/transport_api.c

index b7704e512163b7384c07d73898db8f524a0cdfe9..d2d1d70538f2a77f30225a846e15213e38454ff5 100644 (file)
@@ -581,6 +581,9 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg)
     n = neighbour_find (h, &qm->peer);
     if (n == NULL)
       break;
+    LOG (GNUNET_ERROR_TYPE_ERROR, "Received `%s' message, setting outbound quoto to %u\n",
+        "SET_QUOTA",
+        ntohl(qm->quota.value__));
     GNUNET_BANDWIDTH_tracker_update_quota (&n->out_tracker, qm->quota);
     break;
   default: