diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-07 14:15:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-07 14:15:38 +0000 |
commit | e5bd8fb4aa72717b8707a4652f14c0735acb52c4 (patch) | |
tree | 08398e22b9408cc24b6b9e6cb360fe04b9eeae05 /src/ats/gnunet-service-ats_performance.c | |
parent | 572bab1ace57fb9d7acbd218d6940cb1e9a0797b (diff) | |
download | gnunet-e5bd8fb4aa72717b8707a4652f14c0735acb52c4.tar.gz gnunet-e5bd8fb4aa72717b8707a4652f14c0735acb52c4.zip |
determine network scope for ATS even if we do not yet have a session and only have an address
Diffstat (limited to 'src/ats/gnunet-service-ats_performance.c')
-rw-r--r-- | src/ats/gnunet-service-ats_performance.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats_performance.c b/src/ats/gnunet-service-ats_performance.c index f0fe1927c..831afb418 100644 --- a/src/ats/gnunet-service-ats_performance.c +++ b/src/ats/gnunet-service-ats_performance.c | |||
@@ -85,6 +85,7 @@ notify_client (struct GNUNET_SERVER_Client *client, | |||
85 | struct GNUNET_SERVER_NotificationContext *nc; | 85 | struct GNUNET_SERVER_NotificationContext *nc; |
86 | char *addrp; | 86 | char *addrp; |
87 | 87 | ||
88 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); | ||
88 | GNUNET_assert (msize < GNUNET_SERVER_MAX_MESSAGE_SIZE); | 89 | GNUNET_assert (msize < GNUNET_SERVER_MAX_MESSAGE_SIZE); |
89 | msg = (struct PeerInformationMessage *) buf; | 90 | msg = (struct PeerInformationMessage *) buf; |
90 | msg->header.size = htons (msize); | 91 | msg->header.size = htons (msize); |
@@ -159,6 +160,7 @@ GAS_performance_notify_all_clients (const struct GNUNET_PeerIdentity *peer, | |||
159 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 160 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
160 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) | 161 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in) |
161 | { | 162 | { |
163 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); | ||
162 | notify_client (NULL, | 164 | notify_client (NULL, |
163 | peer, | 165 | peer, |
164 | plugin_name, | 166 | plugin_name, |
@@ -212,6 +214,7 @@ peerinfo_it (void *cls, | |||
212 | plugin_name, | 214 | plugin_name, |
213 | (unsigned int) ntohl (bandwidth_out.value__), | 215 | (unsigned int) ntohl (bandwidth_out.value__), |
214 | (unsigned int) ntohl (bandwidth_in.value__)); | 216 | (unsigned int) ntohl (bandwidth_in.value__)); |
217 | GNUNET_break (GNUNET_ATS_NET_UNSPECIFIED != prop->scope); | ||
215 | notify_client (client, | 218 | notify_client (client, |
216 | id, | 219 | id, |
217 | plugin_name, | 220 | plugin_name, |