aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_clients.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gnunet-service-core_clients.c')
-rw-r--r--src/core/gnunet-service-core_clients.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/gnunet-service-core_clients.c b/src/core/gnunet-service-core_clients.c
index bcbb56ef3..55ebb9132 100644
--- a/src/core/gnunet-service-core_clients.c
+++ b/src/core/gnunet-service-core_clients.c
@@ -517,7 +517,7 @@ client_tokenizer_callback (void *cls, void *client,
517 GNUNET_snprintf (buf, sizeof (buf), 517 GNUNET_snprintf (buf, sizeof (buf),
518 gettext_noop ("# bytes of messages of type %u received"), 518 gettext_noop ("# bytes of messages of type %u received"),
519 (unsigned int) ntohs (message->type)); 519 (unsigned int) ntohs (message->type));
520 GNUNET_STATISTICS_update (GSC_stats, buf, ntohs (message->size), GNUNET_NO); 520 GNUNET_STATISTICS_update (GSC_stats, buf, ntohs (message->size), GNUNET_NO);
521 if (0 == 521 if (0 ==
522 memcmp (&car->target, &GSC_my_identity, 522 memcmp (&car->target, &GSC_my_identity,
523 sizeof (struct GNUNET_PeerIdentity))) 523 sizeof (struct GNUNET_PeerIdentity)))
@@ -536,7 +536,7 @@ client_tokenizer_callback (void *cls, void *client,
536 GNUNET_CORE_OPTION_SEND_FULL_INBOUND); 536 GNUNET_CORE_OPTION_SEND_FULL_INBOUND);
537 GSC_CLIENTS_deliver_message (&GSC_my_identity, message, 537 GSC_CLIENTS_deliver_message (&GSC_my_identity, message,
538 sizeof (struct GNUNET_MessageHeader), 538 sizeof (struct GNUNET_MessageHeader),
539 GNUNET_CORE_OPTION_SEND_HDR_INBOUND); 539 GNUNET_CORE_OPTION_SEND_HDR_INBOUND);
540 } 540 }
541 else 541 else
542 { 542 {
@@ -548,7 +548,7 @@ client_tokenizer_callback (void *cls, void *client,
548 GNUNET_CORE_OPTION_SEND_FULL_OUTBOUND); 548 GNUNET_CORE_OPTION_SEND_FULL_OUTBOUND);
549 GSC_CLIENTS_deliver_message (&car->target, message, 549 GSC_CLIENTS_deliver_message (&car->target, message,
550 sizeof (struct GNUNET_MessageHeader), 550 sizeof (struct GNUNET_MessageHeader),
551 GNUNET_CORE_OPTION_SEND_HDR_OUTBOUND); 551 GNUNET_CORE_OPTION_SEND_HDR_OUTBOUND);
552 GSC_SESSIONS_transmit (car, message, tc->cork); 552 GSC_SESSIONS_transmit (car, message, tc->cork);
553 } 553 }
554 return GNUNET_OK; 554 return GNUNET_OK;
@@ -564,7 +564,7 @@ client_tokenizer_callback (void *cls, void *client,
564 * @return #GNUNET_YES (continue iteration) 564 * @return #GNUNET_YES (continue iteration)
565 */ 565 */
566static int 566static int
567destroy_active_client_request (void *cls, 567destroy_active_client_request (void *cls,
568 const struct GNUNET_PeerIdentity *key, 568 const struct GNUNET_PeerIdentity *key,
569 void *value) 569 void *value)
570{ 570{
@@ -765,7 +765,7 @@ GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity
765 struct GSC_Client *c; 765 struct GSC_Client *c;
766 766
767 for (c = client_head; c != NULL; c = c->next) 767 for (c = client_head; c != NULL; c = c->next)
768 GSC_CLIENTS_notify_client_about_neighbour (c, neighbour, 768 GSC_CLIENTS_notify_client_about_neighbour (c, neighbour,
769 tmap_old, tmap_new); 769 tmap_old, tmap_new);
770} 770}
771 771
@@ -784,7 +784,7 @@ GSC_CLIENTS_notify_clients_about_neighbour (const struct GNUNET_PeerIdentity
784void 784void
785GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender, 785GSC_CLIENTS_deliver_message (const struct GNUNET_PeerIdentity *sender,
786 const struct GNUNET_MessageHeader *msg, 786 const struct GNUNET_MessageHeader *msg,
787 uint16_t msize, 787 uint16_t msize,
788 uint32_t options) 788 uint32_t options)
789{ 789{
790 size_t size = msize + sizeof (struct NotifyTrafficMessage); 790 size_t size = msize + sizeof (struct NotifyTrafficMessage);