diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-07-06 15:24:37 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-07-06 15:24:37 +0000 |
commit | e05dfc08064634e54c527b133ef00e510a3adeda (patch) | |
tree | 8fed7de0d30cfecf406f2628aa8c692a18a6f07c /src/transport/transport_api.c | |
parent | 08669dc96bde16224d1dfc5eb5f790b93c93fb88 (diff) | |
download | gnunet-e05dfc08064634e54c527b133ef00e510a3adeda.tar.gz gnunet-e05dfc08064634e54c527b133ef00e510a3adeda.zip |
quota tests for wlan
Diffstat (limited to 'src/transport/transport_api.c')
-rw-r--r-- | src/transport/transport_api.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index ddad8f196..960844f97 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -477,6 +477,8 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg) | |||
477 | break; | 477 | break; |
478 | } | 478 | } |
479 | n = neighbour_add (h, &cim->id); | 479 | n = neighbour_add (h, &cim->id); |
480 | LOG (GNUNET_ERROR_TYPE_ERROR, "Receiving `%s' message for `%4s' with quota %u\n", | ||
481 | "CONNECT", GNUNET_i2s (&cim->id), ntohl (cim->quota_out.value__)); | ||
480 | GNUNET_BANDWIDTH_tracker_update_quota (&n->out_tracker, cim->quota_out); | 482 | GNUNET_BANDWIDTH_tracker_update_quota (&n->out_tracker, cim->quota_out); |
481 | if (h->nc_cb != NULL) | 483 | if (h->nc_cb != NULL) |
482 | h->nc_cb (h->cls, &n->id, ats, ats_count); | 484 | h->nc_cb (h->cls, &n->id, ats, ats_count); |
@@ -564,6 +566,8 @@ demultiplexer (void *cls, const struct GNUNET_MessageHeader *msg) | |||
564 | n = neighbour_find (h, &qm->peer); | 566 | n = neighbour_find (h, &qm->peer); |
565 | if (n == NULL) | 567 | if (n == NULL) |
566 | break; | 568 | break; |
569 | LOG (GNUNET_ERROR_TYPE_ERROR, "Receiving `%s' message for `%4s' with quota %u\n", | ||
570 | "SET_QUOTA", GNUNET_i2s (&qm->peer), ntohl (qm->quota.value__)); | ||
567 | GNUNET_BANDWIDTH_tracker_update_quota (&n->out_tracker, qm->quota); | 571 | GNUNET_BANDWIDTH_tracker_update_quota (&n->out_tracker, qm->quota); |
568 | break; | 572 | break; |
569 | default: | 573 | default: |