}
static void
-address_suggest_cb (void *cls, const struct GNUNET_HELLO_Address *address,
+address_suggest_cb (void *cls,
+ const struct GNUNET_PeerIdentity *peer,
+ const struct GNUNET_HELLO_Address *address,
struct Session *session,
struct GNUNET_BANDWIDTH_Value32NBO bandwidth_out,
struct GNUNET_BANDWIDTH_Value32NBO bandwidth_in,
{
if (NULL == second_suggestion)
{
- GNUNET_assert (NULL != address);
- GNUNET_assert (NULL == session);
- GNUNET_assert (ntohl(bandwidth_in.value__) > 0);
- GNUNET_assert (ntohl(bandwidth_out.value__) > 0);
-
if ((NULL == address) || (NULL != session))
{
GNUNET_break (0);
end_badly_now ();
return;
}
- if ((ntohl(bandwidth_in.value__) == 0) ||
- (ntohl(bandwidth_out.value__) == 0))
- {
- GNUNET_break (0);
- end_badly_now ();
- return;
- }
if (0 == memcmp (address->address, first_suggestion->address,
(first_suggestion->address_length < address->address_length) ? first_suggestion->address_length : address->address_length))
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "All addresses added, requesting....\n");
/* We have 2 addresses, so we can request */
addresses_added = GNUNET_YES;
- GNUNET_ATS_suggest_address (sched_ats, &p.id);
+ GNUNET_ATS_suggest_address (sched_ats, &p.id, NULL, NULL);
}
return GNUNET_OK;
}