aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-27 22:38:45 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-27 22:38:45 +0000
commit047de959d99fea44ded0a93089d71930f3f5258e (patch)
tree3d8799157e360c86714448ee0f296c152b5af0a8 /src/transport/gnunet-service-transport_neighbours.c
parent59f1c0b2c8ce36eba968d27c7d3985b4008520b7 (diff)
downloadgnunet-047de959d99fea44ded0a93089d71930f3f5258e.tar.gz
gnunet-047de959d99fea44ded0a93089d71930f3f5258e.zip
-fixing #2373
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index e478090c3..1c7cc9f59 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -2198,7 +2198,7 @@ GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
2198 /* ATS asks us to switch a life connection; see if we can get 2198 /* ATS asks us to switch a life connection; see if we can get
2199 a CONNECT_ACK on it before we actually do this! */ 2199 a CONNECT_ACK on it before we actually do this! */
2200 set_address (&n->alternative_address, 2200 set_address (&n->alternative_address,
2201 address, session, bandwidth_in, bandwidth_out, GNUNET_YES); 2201 address, session, bandwidth_in, bandwidth_out, GNUNET_NO);
2202 n->state = S_CONNECTED_SWITCHING_BLACKLIST; 2202 n->state = S_CONNECTED_SWITCHING_BLACKLIST;
2203 check_blacklist (&n->id, 2203 check_blacklist (&n->id,
2204 GNUNET_TIME_absolute_get (), 2204 GNUNET_TIME_absolute_get (),
@@ -2244,7 +2244,7 @@ GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
2244 } 2244 }
2245 /* ATS asks us to switch a life connection, update blacklist check */ 2245 /* ATS asks us to switch a life connection, update blacklist check */
2246 set_address (&n->alternative_address, 2246 set_address (&n->alternative_address,
2247 address, session, bandwidth_in, bandwidth_out, GNUNET_YES); 2247 address, session, bandwidth_in, bandwidth_out, GNUNET_NO);
2248 check_blacklist (&n->id, 2248 check_blacklist (&n->id,
2249 GNUNET_TIME_absolute_get (), 2249 GNUNET_TIME_absolute_get (),
2250 address, session, ats, ats_count); 2250 address, session, ats, ats_count);
@@ -2259,7 +2259,7 @@ GST_neighbours_switch_to_address (const struct GNUNET_PeerIdentity *peer,
2259 } 2259 }
2260 /* ATS asks us to switch a life connection, update blacklist check */ 2260 /* ATS asks us to switch a life connection, update blacklist check */
2261 set_address (&n->alternative_address, 2261 set_address (&n->alternative_address,
2262 address, session, bandwidth_in, bandwidth_out, GNUNET_YES); 2262 address, session, bandwidth_in, bandwidth_out, GNUNET_NO);
2263 n->state = S_CONNECTED_SWITCHING_BLACKLIST; 2263 n->state = S_CONNECTED_SWITCHING_BLACKLIST;
2264 check_blacklist (&n->id, 2264 check_blacklist (&n->id,
2265 GNUNET_TIME_absolute_get (), 2265 GNUNET_TIME_absolute_get (),
@@ -2587,7 +2587,7 @@ GST_neighbours_handle_connect_ack (const struct GNUNET_MessageHeader *message,
2587 /* new address worked; adopt it and go back to connected! */ 2587 /* new address worked; adopt it and go back to connected! */
2588 n->state = S_CONNECTED; 2588 n->state = S_CONNECTED;
2589 n->timeout = GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT); 2589 n->timeout = GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT);
2590 GNUNET_assert (GNUNET_NO == n->alternative_address.ats_active); 2590 GNUNET_break (GNUNET_NO == n->alternative_address.ats_active);
2591 set_address (&n->primary_address, 2591 set_address (&n->primary_address,
2592 n->alternative_address.address, 2592 n->alternative_address.address,
2593 n->alternative_address.session, 2593 n->alternative_address.session,