diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-03-17 18:13:55 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-03-17 18:13:55 +0100 |
commit | 17d34d5e094c2f8a90717b07e3a711d6e2c15903 (patch) | |
tree | 777b5323145a5f4d1f044da29a682799008a11d4 /src/ats | |
parent | 3391977e3f92a2ebcafc14ea6374aecd580df873 (diff) | |
download | gnunet-17d34d5e094c2f8a90717b07e3a711d6e2c15903.tar.gz gnunet-17d34d5e094c2f8a90717b07e3a711d6e2c15903.zip |
more renamings relating to 'new' service now just being the 'normal' service
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/ats_api_scheduling.c | 6 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.c | 2 | ||||
-rw-r--r-- | src/ats/gnunet-service-ats_performance.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c index faeeb6081..81ae01b6a 100644 --- a/src/ats/ats_api_scheduling.c +++ b/src/ats/ats_api_scheduling.c | |||
@@ -657,9 +657,9 @@ GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh, | |||
657 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); | 657 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); |
658 | namelen = strlen (address->transport_name) + 1; | 658 | namelen = strlen (address->transport_name) + 1; |
659 | msize = address->address_length + namelen; | 659 | msize = address->address_length + namelen; |
660 | if ((msize + sizeof (struct AddressUpdateMessage) >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || | 660 | if ((msize + sizeof (struct AddressUpdateMessage) >= GNUNET_MAX_MESSAGE_SIZE) || |
661 | (address->address_length >= GNUNET_SERVER_MAX_MESSAGE_SIZE) || | 661 | (address->address_length >= GNUNET_MAX_MESSAGE_SIZE) || |
662 | (namelen >= GNUNET_SERVER_MAX_MESSAGE_SIZE) ) | 662 | (namelen >= GNUNET_MAX_MESSAGE_SIZE) ) |
663 | { | 663 | { |
664 | /* address too large for us, this should not happen */ | 664 | /* address too large for us, this should not happen */ |
665 | GNUNET_break (0); | 665 | GNUNET_break (0); |
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c index 1a4a33206..ba34cbacb 100644 --- a/src/ats/gnunet-service-ats_addresses.c +++ b/src/ats/gnunet-service-ats_addresses.c | |||
@@ -571,7 +571,7 @@ transmit_req_addr (struct AddressIteration *ai, | |||
571 | msize = plugin_addr_len + plugin_name_length; | 571 | msize = plugin_addr_len + plugin_name_length; |
572 | 572 | ||
573 | GNUNET_assert (sizeof (struct PeerInformationMessage) + msize | 573 | GNUNET_assert (sizeof (struct PeerInformationMessage) + msize |
574 | < GNUNET_SERVER_MAX_MESSAGE_SIZE); | 574 | < GNUNET_MAX_MESSAGE_SIZE); |
575 | env = GNUNET_MQ_msg_extra (msg, | 575 | env = GNUNET_MQ_msg_extra (msg, |
576 | msize, | 576 | msize, |
577 | GNUNET_MESSAGE_TYPE_ATS_ADDRESSLIST_RESPONSE); | 577 | GNUNET_MESSAGE_TYPE_ATS_ADDRESSLIST_RESPONSE); |
diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c index 5252a71bc..07ddf0531 100644 --- a/src/ats/gnunet-service-ats_performance.c +++ b/src/ats/gnunet-service-ats_performance.c | |||
@@ -85,7 +85,7 @@ notify_client (struct GNUNET_SERVICE_Client *client, | |||
85 | 85 | ||
86 | if (NULL != prop) | 86 | if (NULL != prop) |
87 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); | 87 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); |
88 | GNUNET_assert (msize < GNUNET_SERVER_MAX_MESSAGE_SIZE); | 88 | GNUNET_assert (msize < GNUNET_MAX_MESSAGE_SIZE); |
89 | msg = (struct PeerInformationMessage *) buf; | 89 | msg = (struct PeerInformationMessage *) buf; |
90 | msg->header.size = htons (msize); | 90 | msg->header.size = htons (msize); |
91 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION); | 91 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_ATS_PEER_INFORMATION); |