1 /* code that should be moved outside of core/ entirely */
4 * Merge the given performance data with the data we currently
5 * track for the given neighbour.
8 * @param ats new performance data
9 * @param ats_count number of records in ats
12 update_neighbour_performance (struct Neighbour *n,
13 const struct GNUNET_TRANSPORT_ATS_Information
14 *ats, uint32_t ats_count)
21 for (i = 0; i < ats_count; i++)
23 for (j = 0; j < n->ats_count; j++)
25 if (n->ats[j].type == ats[i].type)
27 n->ats[j].value = ats[i].value;
31 if (j == n->ats_count)
33 GNUNET_array_append (n->ats, n->ats_count, ats[i]);