n->alternative_address.session = session;
n->alternative_address.ats_active = GNUNET_NO;
n->alternative_address.keep_alive_nonce = 0;
+ GNUNET_assert (GNUNET_YES ==
+ GST_ats_is_known (n->alternative_address.address,
+ n->alternative_address.session));
}
n->primary_address.bandwidth_out = bandwidth_out;
n->primary_address.session = session;
n->primary_address.keep_alive_nonce = 0;
+ GNUNET_assert (GNUNET_YES ==
+ GST_ats_is_known (n->primary_address.address,
+ n->primary_address.session));
/* subsystems about address use */
GST_validation_set_address_use (n->primary_address.address,
GNUNET_YES);
if (NULL == (n = lookup_neighbour (neighbour)))
{
GNUNET_STATISTICS_update (GST_stats,
- gettext_noop ("# KEEPALIVE_RESPONSE messages discarded (not connected)"),
+ gettext_noop ("# KEEPALIVE_RESPONSEs discarded (not connected)"),
1,
GNUNET_NO);
return;
(GNUNET_YES != n->expect_latency_response) )
{
GNUNET_STATISTICS_update (GST_stats,
- gettext_noop ("# KEEPALIVE_RESPONSE messages discarded (not expected)"),
+ gettext_noop ("# KEEPALIVE_RESPONSEs discarded (not expected)"),
1,
GNUNET_NO);
return;
if (NULL == n->primary_address.address)
{
GNUNET_STATISTICS_update (GST_stats,
- gettext_noop ("# KEEPALIVE_RESPONSE messages discarded (address changed)"),
+ gettext_noop ("# KEEPALIVE_RESPONSEs discarded (address changed)"),
1,
GNUNET_NO);
return;
{
if (0 == n->primary_address.keep_alive_nonce)
GNUNET_STATISTICS_update (GST_stats,
- gettext_noop ("# KEEPALIVE_RESPONSE messages discarded (no nonce)"),
+ gettext_noop ("# KEEPALIVE_RESPONSEs discarded (no nonce)"),
1,
GNUNET_NO);
else
GNUNET_STATISTICS_update (GST_stats,
- gettext_noop ("# KEEPALIVE_RESPONSE messages discarded (wrong nonce)"),
+ gettext_noop ("# KEEPALIVE_RESPONSEs discarded (bad nonce)"),
1,
GNUNET_NO);
return;
}
GNUNET_STATISTICS_update (GST_stats,
- gettext_noop ("# KEEPALIVE_RESPONSE messages received in good order"),
+ gettext_noop ("# KEEPALIVE_RESPONSEs received (OK)"),
1,
GNUNET_NO);
/* switch to a different session, but keeping same address; could
happen if there is a 2nd inbound connection */
n->primary_address.session = session;
+ GNUNET_assert (GNUNET_YES ==
+ GST_ats_is_known (n->primary_address.address,
+ n->primary_address.session));
}
n->primary_address.bandwidth_in = bandwidth_in;
n->primary_address.bandwidth_out = bandwidth_out;
/* Destroy the inbound address since it cannot be used */
free_address (&n->primary_address);
n->primary_address = n->alternative_address;
+ GNUNET_assert (GNUNET_YES ==
+ GST_ats_is_known (n->primary_address.address,
+ n->primary_address.session));
memset (&n->alternative_address,
0,
sizeof (struct NeighbourAddress));
print_ack_state (n->ack_state));
GNUNET_STATISTICS_update (GST_stats,
- gettext_noop ("# unexpected ACK messages"), 1,
+ gettext_noop ("# unexpected ACK messages"),
+ 1,
GNUNET_NO);
return GNUNET_OK;
}
GNUNET_TRANSPORT_PS_CONNECTED,
GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT));
- /* Reset backoff for primary address */
+ /* Reset backoff for primary address */
GST_ats_block_reset (n->primary_address.address,
n->primary_address.session);
return GNUNET_OK;