diff options
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index a35a78091..31f6de1d8 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -89,7 +89,7 @@ struct GNUNET_ATS_SchedulingHandle *GST_ats; | |||
89 | */ | 89 | */ |
90 | static void | 90 | static void |
91 | transmit_our_hello (void *cls, const struct GNUNET_PeerIdentity *target, | 91 | transmit_our_hello (void *cls, const struct GNUNET_PeerIdentity *target, |
92 | const struct GNUNET_TRANSPORT_ATS_Information *ats, | 92 | const struct GNUNET_ATS_Information *ats, |
93 | uint32_t ats_count, | 93 | uint32_t ats_count, |
94 | const char * transport, | 94 | const char * transport, |
95 | const void * addr, | 95 | const void * addr, |
@@ -161,7 +161,7 @@ try_connect_if_allowed (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
161 | static struct GNUNET_TIME_Relative | 161 | static struct GNUNET_TIME_Relative |
162 | plugin_env_receive_callback (void *cls, const struct GNUNET_PeerIdentity *peer, | 162 | plugin_env_receive_callback (void *cls, const struct GNUNET_PeerIdentity *peer, |
163 | const struct GNUNET_MessageHeader *message, | 163 | const struct GNUNET_MessageHeader *message, |
164 | const struct GNUNET_TRANSPORT_ATS_Information *ats, | 164 | const struct GNUNET_ATS_Information *ats, |
165 | uint32_t ats_count, struct Session *session, | 165 | uint32_t ats_count, struct Session *session, |
166 | const char *sender_address, | 166 | const char *sender_address, |
167 | uint16_t sender_address_len) | 167 | uint16_t sender_address_len) |
@@ -333,7 +333,7 @@ ats_request_address_change (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
333 | struct Session *session, | 333 | struct Session *session, |
334 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, | 334 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out, |
335 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, | 335 | struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in, |
336 | const struct GNUNET_TRANSPORT_ATS_Information * ats, | 336 | const struct GNUNET_ATS_Information * ats, |
337 | uint32_t ats_count) | 337 | uint32_t ats_count) |
338 | { | 338 | { |
339 | uint32_t bw_in = ntohl (bandwidth_in.value__); | 339 | uint32_t bw_in = ntohl (bandwidth_in.value__); |
@@ -382,11 +382,11 @@ ats_request_address_change (void *cls, const struct GNUNET_PeerIdentity *peer, | |||
382 | static void | 382 | static void |
383 | neighbours_connect_notification (void *cls, | 383 | neighbours_connect_notification (void *cls, |
384 | const struct GNUNET_PeerIdentity *peer, | 384 | const struct GNUNET_PeerIdentity *peer, |
385 | const struct GNUNET_TRANSPORT_ATS_Information | 385 | const struct GNUNET_ATS_Information |
386 | *ats, uint32_t ats_count) | 386 | *ats, uint32_t ats_count) |
387 | { | 387 | { |
388 | char buf[sizeof (struct ConnectInfoMessage) + | 388 | char buf[sizeof (struct ConnectInfoMessage) + |
389 | ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)]; | 389 | ats_count * sizeof (struct GNUNET_ATS_Information)]; |
390 | struct ConnectInfoMessage *connect_msg = (struct ConnectInfoMessage *) buf; | 390 | struct ConnectInfoMessage *connect_msg = (struct ConnectInfoMessage *) buf; |
391 | 391 | ||
392 | connect_msg->header.size = htons (sizeof (buf)); | 392 | connect_msg->header.size = htons (sizeof (buf)); |
@@ -394,7 +394,7 @@ neighbours_connect_notification (void *cls, | |||
394 | connect_msg->ats_count = htonl (ats_count); | 394 | connect_msg->ats_count = htonl (ats_count); |
395 | connect_msg->id = *peer; | 395 | connect_msg->id = *peer; |
396 | memcpy (&connect_msg->ats, &connect_msg->ats, | 396 | memcpy (&connect_msg->ats, &connect_msg->ats, |
397 | ats_count * sizeof (struct GNUNET_TRANSPORT_ATS_Information)); | 397 | ats_count * sizeof (struct GNUNET_ATS_Information)); |
398 | GST_clients_broadcast (&connect_msg->header, GNUNET_NO); | 398 | GST_clients_broadcast (&connect_msg->header, GNUNET_NO); |
399 | } | 399 | } |
400 | 400 | ||