aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_clients.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-11 08:56:00 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-11 08:56:00 +0000
commit8afe6f260b19f148398784a2a918006b91bb4096 (patch)
tree6cd8160e8e0a183d4071d75abcbbde90b4d532f1 /src/core/gnunet-service-core_clients.c
parent1f0797c47af2a197b05ac640ce17adc86982d3c0 (diff)
downloadgnunet-8afe6f260b19f148398784a2a918006b91bb4096.tar.gz
gnunet-8afe6f260b19f148398784a2a918006b91bb4096.zip
process inbound type map messages:
Diffstat (limited to 'src/core/gnunet-service-core_clients.c')
-rw-r--r--src/core/gnunet-service-core_clients.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c
index 0b1616c97..9b442bf30 100644
--- a/src/core/gnunet-service-core_clients.c
+++ b/src/core/gnunet-service-core_clients.c
@@ -578,7 +578,7 @@ GSC_CLIENTS_reject_request (struct GSC_ClientActiveRequest *car)
578 * @param tmap_new updated type map for the neighbour, NULL for disconnect 578 * @param tmap_new updated type map for the neighbour, NULL for disconnect
579 */ 579 */
580void 580void
581GDS_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, 581GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
582 const struct GNUNET_PeerIdentity *neighbour, 582 const struct GNUNET_PeerIdentity *neighbour,
583 const struct GNUNET_TRANSPORT_ATS_Information *atsi, 583 const struct GNUNET_TRANSPORT_ATS_Information *atsi,
584 unsigned int atsi_count, 584 unsigned int atsi_count,
@@ -651,7 +651,7 @@ GDS_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client,
651 * @param tmap_new updated type map for the neighbour, NULL for disconnect 651 * @param tmap_new updated type map for the neighbour, NULL for disconnect
652 */ 652 */
653void 653void
654GDS_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *neighbour, 654GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *neighbour,
655 const struct GNUNET_TRANSPORT_ATS_Information *atsi, 655 const struct GNUNET_TRANSPORT_ATS_Information *atsi,
656 unsigned int atsi_count, 656 unsigned int atsi_count,
657 const struct GSC_TypeMap *tmap_old, 657 const struct GSC_TypeMap *tmap_old,
@@ -660,7 +660,7 @@ GDS_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *ne
660 struct GSC_Client *c; 660 struct GSC_Client *c;
661 661
662 for (c = client_head; c != NULL; c = c->next) 662 for (c = client_head; c != NULL; c = c->next)
663 GDS_CLIENTS_notify_client_about_neighbour (c, neighbour, atsi, 663 GSC_CLIENTS_notify_client_about_neighbour (c, neighbour, atsi,
664 atsi_count, 664 atsi_count,
665 tmap_old, tmap_new); 665 tmap_old, tmap_new);
666} 666}
@@ -713,6 +713,7 @@ GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender,
713 GNUNET_i2s (sender), 713 GNUNET_i2s (sender),
714 (unsigned int) ntohs (msg->type)); 714 (unsigned int) ntohs (msg->type));
715#endif 715#endif
716 GSC_SESSIONS_add_to_typemap (sender, ntohs (msg->type));
716 ntm = (struct NotifyTrafficMessage *) buf; 717 ntm = (struct NotifyTrafficMessage *) buf;
717 ntm->header.size = htons (size); 718 ntm->header.size = htons (size);
718 ntm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND); 719 ntm->header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND);