diff options
Diffstat (limited to 'src/core/gnunet-service-core_clients.c')
-rw-r--r-- | src/core/gnunet-service-core_clients.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c index 5e25ac907..3159772aa 100644 --- a/src/core/gnunet-service-core_clients.c +++ b/src/core/gnunet-service-core_clients.c | |||
@@ -616,7 +616,7 @@ GSC_CLIENTS_reject_request (struct GSC_ClientActiveRequest *car) | |||
616 | void | 616 | void |
617 | GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, | 617 | GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, |
618 | const struct GNUNET_PeerIdentity *neighbour, | 618 | const struct GNUNET_PeerIdentity *neighbour, |
619 | const struct GNUNET_TRANSPORT_ATS_Information *atsi, | 619 | const struct GNUNET_ATS_Information *atsi, |
620 | unsigned int atsi_count, | 620 | unsigned int atsi_count, |
621 | const struct GSC_TypeMap *tmap_old, | 621 | const struct GSC_TypeMap *tmap_old, |
622 | const struct GSC_TypeMap *tmap_new) | 622 | const struct GSC_TypeMap *tmap_new) |
@@ -624,7 +624,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, | |||
624 | struct ConnectNotifyMessage *cnm; | 624 | struct ConnectNotifyMessage *cnm; |
625 | size_t size; | 625 | size_t size; |
626 | char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; | 626 | char buf[GNUNET_SERVER_MAX_MESSAGE_SIZE - 1]; |
627 | struct GNUNET_TRANSPORT_ATS_Information *a; | 627 | struct GNUNET_ATS_Information *a; |
628 | struct DisconnectNotifyMessage dcm; | 628 | struct DisconnectNotifyMessage dcm; |
629 | int old_match; | 629 | int old_match; |
630 | int new_match; | 630 | int new_match; |
@@ -640,7 +640,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, | |||
640 | /* send connect */ | 640 | /* send connect */ |
641 | size = | 641 | size = |
642 | sizeof (struct ConnectNotifyMessage) + | 642 | sizeof (struct ConnectNotifyMessage) + |
643 | (atsi_count) * sizeof (struct GNUNET_TRANSPORT_ATS_Information); | 643 | (atsi_count) * sizeof (struct GNUNET_ATS_Information); |
644 | if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE) | 644 | if (size >= GNUNET_SERVER_MAX_MESSAGE_SIZE) |
645 | { | 645 | { |
646 | GNUNET_break (0); | 646 | GNUNET_break (0); |
@@ -654,8 +654,8 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, | |||
654 | cnm->ats_count = htonl (atsi_count); | 654 | cnm->ats_count = htonl (atsi_count); |
655 | a = &cnm->ats; | 655 | a = &cnm->ats; |
656 | memcpy (a, atsi, | 656 | memcpy (a, atsi, |
657 | sizeof (struct GNUNET_TRANSPORT_ATS_Information) * atsi_count); | 657 | sizeof (struct GNUNET_ATS_Information) * atsi_count); |
658 | a[atsi_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); | 658 | a[atsi_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR); |
659 | a[atsi_count].value = htonl (0); | 659 | a[atsi_count].value = htonl (0); |
660 | #if DEBUG_CORE | 660 | #if DEBUG_CORE |
661 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 661 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -690,7 +690,7 @@ GSC_CLIENTS_notify_client_about_neighbour (struct GSC_Client *client, | |||
690 | */ | 690 | */ |
691 | void | 691 | void |
692 | GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *neighbour, | 692 | GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *neighbour, |
693 | const struct GNUNET_TRANSPORT_ATS_Information *atsi, | 693 | const struct GNUNET_ATS_Information *atsi, |
694 | unsigned int atsi_count, | 694 | unsigned int atsi_count, |
695 | const struct GSC_TypeMap *tmap_old, | 695 | const struct GSC_TypeMap *tmap_old, |
696 | const struct GSC_TypeMap *tmap_new) | 696 | const struct GSC_TypeMap *tmap_new) |
@@ -719,17 +719,17 @@ GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity *ne | |||
719 | */ | 719 | */ |
720 | void | 720 | void |
721 | GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender, | 721 | GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender, |
722 | const struct GNUNET_TRANSPORT_ATS_Information *atsi, | 722 | const struct GNUNET_ATS_Information *atsi, |
723 | unsigned int atsi_count, | 723 | unsigned int atsi_count, |
724 | const struct GNUNET_MessageHeader *msg, | 724 | const struct GNUNET_MessageHeader *msg, |
725 | uint16_t msize, | 725 | uint16_t msize, |
726 | int options) | 726 | int options) |
727 | { | 727 | { |
728 | size_t size = msize + sizeof (struct NotifyTrafficMessage) + | 728 | size_t size = msize + sizeof (struct NotifyTrafficMessage) + |
729 | atsi_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information); | 729 | atsi_count * sizeof (struct GNUNET_ATS_Information); |
730 | char buf[size]; | 730 | char buf[size]; |
731 | struct NotifyTrafficMessage *ntm; | 731 | struct NotifyTrafficMessage *ntm; |
732 | struct GNUNET_TRANSPORT_ATS_Information *a; | 732 | struct GNUNET_ATS_Information *a; |
733 | 733 | ||
734 | if (0 == options) | 734 | if (0 == options) |
735 | { | 735 | { |
@@ -759,8 +759,8 @@ GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender, | |||
759 | ntm->peer = *sender; | 759 | ntm->peer = *sender; |
760 | a = &ntm->ats; | 760 | a = &ntm->ats; |
761 | memcpy (a, atsi, | 761 | memcpy (a, atsi, |
762 | sizeof (struct GNUNET_TRANSPORT_ATS_Information) * atsi_count); | 762 | sizeof (struct GNUNET_ATS_Information) * atsi_count); |
763 | a[atsi_count].type = htonl (GNUNET_TRANSPORT_ATS_ARRAY_TERMINATOR); | 763 | a[atsi_count].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR); |
764 | a[atsi_count].value = htonl (0); | 764 | a[atsi_count].value = htonl (0); |
765 | memcpy (&a[atsi_count + 1], msg, msize); | 765 | memcpy (&a[atsi_count + 1], msg, msize); |
766 | send_to_all_clients (&ntm->header, GNUNET_YES, | 766 | send_to_all_clients (&ntm->header, GNUNET_YES, |