diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-20 09:33:04 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-03-20 09:33:04 +0000 |
commit | 9e64a03e8979bd9139f3ccf6222f24fe541cda9e (patch) | |
tree | 07dcc1f5cb98fcf81794dd52633aa12b64f26d41 /src/ats/gnunet-service-ats_performance.c | |
parent | 110f7cda16a96257ad4bdcf604b1e188a00a1200 (diff) | |
download | gnunet-9e64a03e8979bd9139f3ccf6222f24fe541cda9e.tar.gz gnunet-9e64a03e8979bd9139f3ccf6222f24fe541cda9e.zip |
initial cb
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.c')
-rw-r--r-- | src/ats/gnunet-service-ats_performance.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c index 74b9650c9..cbbed1967 100644 --- a/src/ats/gnunet-service-ats_performance.c +++ b/src/ats/gnunet-service-ats_performance.c | |||
@@ -542,6 +542,7 @@ GAS_handle_performance_update (struct GNUNET_PeerIdentity *peer, | |||
542 | mrm->header.size = htons (msglen); | 542 | mrm->header.size = htons (msglen); |
543 | mrm->ats_count = htonl (ats_count); | 543 | mrm->ats_count = htonl (ats_count); |
544 | mrm->peer = *peer; | 544 | mrm->peer = *peer; |
545 | memcpy (&mrm[1], ats, sizeof (struct GNUNET_ATS_Information)); | ||
545 | 546 | ||
546 | for (cur = pc_head; NULL != cur; cur = cur->next) | 547 | for (cur = pc_head; NULL != cur; cur = cur->next) |
547 | for (curm = cur->pm_head; NULL != curm; curm = curm->next) | 548 | for (curm = cur->pm_head; NULL != curm; curm = curm->next) |
@@ -582,17 +583,17 @@ mon_peerinfo_it (void *cls, | |||
582 | 583 | ||
583 | mrm->header.type = htons (GNUNET_MESSAGE_TYPE_ATS_MONITOR_RESPONSE); | 584 | mrm->header.type = htons (GNUNET_MESSAGE_TYPE_ATS_MONITOR_RESPONSE); |
584 | mrm->header.size = htons (msglen); | 585 | mrm->header.size = htons (msglen); |
586 | mrm->id = htonl(pmc->id); | ||
585 | mrm->ats_count = htonl (atsi_count); | 587 | mrm->ats_count = htonl (atsi_count); |
586 | mrm->peer = *id; | 588 | mrm->peer = *id; |
587 | mrm->id = pmc->id; | 589 | memcpy (&mrm[1], atsi, sizeof (struct GNUNET_ATS_Information)); |
588 | 590 | ||
589 | /* Send initial information about peers to client */ | 591 | /* Send initial information about peers to client */ |
590 | /* | 592 | |
591 | GNUNET_SERVER_notification_context_unicast (nc, | 593 | GNUNET_SERVER_notification_context_unicast (nc, |
592 | pmc->client, | 594 | pmc->client, |
593 | (struct GNUNET_MessageHeader *) mrm, | 595 | (struct GNUNET_MessageHeader *) mrm, |
594 | GNUNET_YES); | 596 | GNUNET_YES); |
595 | */ | ||
596 | GNUNET_free (mrm); | 597 | GNUNET_free (mrm); |
597 | } | 598 | } |
598 | 599 | ||
@@ -661,9 +662,8 @@ GAS_handle_monitor (void *cls, | |||
661 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 662 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
662 | "Added performance monitoring client %p id %u\n", | 663 | "Added performance monitoring client %p id %u\n", |
663 | client, id); | 664 | client, id); |
664 | |||
665 | /* Return all values here */ | 665 | /* Return all values here */ |
666 | GAS_addresses_iterate_peers (GSA_addresses, &mon_peer_it, pc); | 666 | GAS_addresses_iterate_peers (GSA_addresses, &mon_peer_it, pmc); |
667 | 667 | ||
668 | } | 668 | } |
669 | else if (GNUNET_NO == op) | 669 | else if (GNUNET_NO == op) |