aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-07 14:22:17 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-07 14:22:17 +0000
commitcf599235b5ff4f06dc7e78aeca8c0d9794560c90 (patch)
treeb45b743965a7626cc72a69f8edc72d5dd50661d6 /src/transport/gnunet-service-transport_neighbours.c
parent4dca0c9b28d2115a936b05582618f2285022089a (diff)
downloadgnunet-cf599235b5ff4f06dc7e78aeca8c0d9794560c90.tar.gz
gnunet-cf599235b5ff4f06dc7e78aeca8c0d9794560c90.zip
likely duplication
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index 6be718d91..db2a40a70 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -171,19 +171,6 @@ struct NeighbourMapEntry
171 struct GNUNET_BANDWIDTH_Tracker in_tracker; 171 struct GNUNET_BANDWIDTH_Tracker in_tracker;
172 172
173 /** 173 /**
174 * The latency we have seen for this particular address for
175 * this particular peer. This latency may have been calculated
176 * over multiple transports. This value reflects how long it took
177 * us to receive a response when SENDING via this particular
178 * transport/neighbour/address combination!
179 *
180 * FIXME: we need to periodically send PINGs to update this
181 * latency (at least more often than the current "huge" (11h?)
182 * update interval).
183 */
184 struct GNUNET_TIME_Relative latency;
185
186 /**
187 * How often has the other peer (recently) violated the inbound 174 * How often has the other peer (recently) violated the inbound
188 * traffic limit? Incremented by 10 per violation, decremented by 1 175 * traffic limit? Incremented by 10 per violation, decremented by 1
189 * per non-violation (for each time interval). 176 * per non-violation (for each time interval).
@@ -191,11 +178,6 @@ struct NeighbourMapEntry
191 unsigned int quota_violation_count; 178 unsigned int quota_violation_count;
192 179
193 /** 180 /**
194 * DV distance to this peer (1 if no DV is used).
195 */
196 uint32_t distance;
197
198 /**
199 * Number of values in 'ats' array. 181 * Number of values in 'ats' array.
200 */ 182 */
201 unsigned int ats_count; 183 unsigned int ats_count;
@@ -493,8 +475,6 @@ GST_neighbours_try_connect (const struct GNUNET_PeerIdentity *target)
493 GNUNET_BANDWIDTH_tracker_init (&n->in_tracker, 475 GNUNET_BANDWIDTH_tracker_init (&n->in_tracker,
494 GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT, 476 GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT,
495 MAX_BANDWIDTH_CARRY_S); 477 MAX_BANDWIDTH_CARRY_S);
496 n->latency = GNUNET_TIME_UNIT_FOREVER_REL;
497 n->distance = UINT32_MAX;
498 n->timeout_task = GNUNET_SCHEDULER_add_delayed (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT, 478 n->timeout_task = GNUNET_SCHEDULER_add_delayed (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT,
499 &neighbour_connect_timeout_task, n); 479 &neighbour_connect_timeout_task, n);
500 GNUNET_assert (GNUNET_OK == 480 GNUNET_assert (GNUNET_OK ==
@@ -737,8 +717,6 @@ GST_neighbours_handle_connect (const struct GNUNET_PeerIdentity *sender,
737 GNUNET_BANDWIDTH_tracker_init (&n->in_tracker, 717 GNUNET_BANDWIDTH_tracker_init (&n->in_tracker,
738 GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT, 718 GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT,
739 MAX_BANDWIDTH_CARRY_S); 719 MAX_BANDWIDTH_CARRY_S);
740 n->latency = GNUNET_TIME_UNIT_FOREVER_REL;
741 n->distance = UINT32_MAX;
742 n->timeout_task = GNUNET_SCHEDULER_add_delayed (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT, 720 n->timeout_task = GNUNET_SCHEDULER_add_delayed (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT,
743 &neighbour_connect_timeout_task, n); 721 &neighbour_connect_timeout_task, n);
744 GNUNET_assert (GNUNET_OK == 722 GNUNET_assert (GNUNET_OK ==