- address0.peer = p.id;
- address0.transport_name = test_addr.plugin;
- address0.address = test_addr.addr;
- address0.address_length = test_addr.addr_len;
- GNUNET_ATS_address_add (ats, &address0, test_addr.session, NULL, 0);
-
- test_addr.session = &test_addr;
- /* Update address with session */
- GNUNET_ATS_address_add (ats, &address0, test_addr.session, NULL, 0);
-
- /* Update address with session */
- test_addr.session = &address0;
- GNUNET_assert (GNUNET_OK == GNUNET_ATS_address_add (ats, &address0, test_addr.session, NULL, 0));
- GNUNET_log_skip (2, GNUNET_NO);
- GNUNET_assert (GNUNET_SYSERR == GNUNET_ATS_address_add (ats, &address0, test_addr.session, NULL, 0));
-
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Requesting peer `%s'\n",
- GNUNET_i2s (&p.id));
- GNUNET_ATS_suggest_address (ats, &p.id);
+ test_session = NULL;
+ create_test_address (&test_addr, "test", test_session, "test", strlen ("test") + 1);
+ test_hello_address.peer = p.id;
+ test_hello_address.transport_name = test_addr.plugin;
+ test_hello_address.address = test_addr.addr;
+ test_hello_address.address_length = test_addr.addr_len;
+
+ /* Adding address */
+ GNUNET_ATS_address_add (sched_ats, &test_hello_address, test_session, test_ats_info, test_ats_count);