Lines Matching refs:ai

1235 		struct evutil_addrinfo hints, *ai = NULL;
1241 "nonesuch.nowhere.example.com", "80", &hints, &ai);
1284 struct evutil_addrinfo *ai;
1295 go->ai = res;
1349 tt_ptr_op(local_outcome.ai,!=,NULL);
1350 test_ai_eq(local_outcome.ai, "1.2.3.4:80", SOCK_STREAM, IPPROTO_TCP);
1351 evutil_freeaddrinfo(local_outcome.ai);
1352 local_outcome.ai = NULL;
1366 tt_ptr_op(local_outcome.ai,==,NULL);
1377 tt_assert(local_outcome.ai);
1378 tt_ptr_op(local_outcome.ai->ai_next,==,NULL);
1379 test_ai_eq(local_outcome.ai, "[f::f]:8008", SOCK_STREAM, IPPROTO_TCP);
1380 evutil_freeaddrinfo(local_outcome.ai);
1381 local_outcome.ai = NULL;
1391 tt_assert(local_outcome.ai);
1392 a = ai_find_by_protocol(local_outcome.ai, IPPROTO_TCP);
1395 a = ai_find_by_protocol(local_outcome.ai, IPPROTO_UDP);
1398 evutil_freeaddrinfo(local_outcome.ai);
1399 local_outcome.ai = NULL;
1411 tt_assert(local_outcome.ai);
1413 a = ai_find_by_family(local_outcome.ai, PF_INET);
1417 a = ai_find_by_family(local_outcome.ai, PF_INET6);
1420 evutil_freeaddrinfo(local_outcome.ai);
1421 local_outcome.ai = NULL;
1432 tt_assert(local_outcome.ai);
1434 a = ai_find_by_family(local_outcome.ai, PF_INET);
1438 a = ai_find_by_family(local_outcome.ai, PF_INET6);
1441 evutil_freeaddrinfo(local_outcome.ai);
1442 local_outcome.ai = NULL;
1453 tt_assert(local_outcome.ai);
1455 a = ai_find_by_family(local_outcome.ai, PF_INET);
1459 a = ai_find_by_family(local_outcome.ai, PF_INET6);
1462 evutil_freeaddrinfo(local_outcome.ai);
1463 local_outcome.ai = NULL;
1474 tt_assert(local_outcome.ai);
1475 a = local_outcome.ai;
1478 evutil_freeaddrinfo(local_outcome.ai);
1479 local_outcome.ai = NULL;
1592 tt_assert(a_out[0].ai);
1593 tt_assert(a_out[0].ai->ai_next);
1594 tt_assert(!a_out[0].ai->ai_next->ai_next);
1595 a = ai_find_by_family(a_out[0].ai, PF_INET);
1598 a = ai_find_by_family(a_out[0].ai, PF_INET6);
1601 tt_assert(a_out[0].ai->ai_canonname);
1602 tt_str_op(a_out[0].ai->ai_canonname, ==, "both-canonical.example.com");
1606 tt_assert(a_out[1].ai);
1607 tt_assert(! a_out[1].ai->ai_next);
1608 test_ai_eq(a_out[1].ai, "18.52.86.120:8001", SOCK_STREAM, IPPROTO_TCP);
1609 tt_assert(a_out[1].ai->ai_canonname == NULL);
1614 tt_assert(a_out[2].ai);
1615 tt_assert(! a_out[2].ai->ai_next);
1616 test_ai_eq(a_out[2].ai, "[b0b::f00d]:8002", SOCK_STREAM, IPPROTO_TCP);
1620 tt_assert(a_out[3].ai);
1621 tt_assert(! a_out[3].ai->ai_next);
1622 test_ai_eq(a_out[3].ai, "18.52.86.120:8003", SOCK_STREAM, IPPROTO_TCP);
1626 tt_assert(a_out[4].ai);
1627 tt_assert(! a_out[4].ai->ai_next);
1628 test_ai_eq(a_out[4].ai, "[b0b::f00d]:8004", SOCK_STREAM, IPPROTO_TCP);
1632 tt_assert(! a_out[5].ai);
1636 tt_assert(! a_out[6].ai);
1640 tt_assert(a_out[7].ai);
1641 tt_assert(! a_out[7].ai->ai_next);
1642 test_ai_eq(a_out[7].ai, "171.205.239.1:8007", SOCK_STREAM, IPPROTO_TCP);
1646 tt_assert(! a_out[8].ai);
1650 tt_assert(a_out[9].ai);
1651 a = ai_find_by_family(a_out[9].ai, PF_INET);
1655 tt_assert(ai_find_by_family(a_out[9].ai, PF_INET6));
1656 a = ai_find_by_family(a_out[9].ai, PF_INET6);
1660 tt_assert(ai_find_by_family(a_out[9].ai, PF_INET));
1664 tt_assert(a_out[10].ai);
1665 tt_assert(! a_out[10].ai->ai_next);
1666 test_ai_eq(a_out[10].ai, "[a0a::ff01]:8010", SOCK_STREAM, IPPROTO_TCP);
1670 tt_assert(a_out[11].ai == NULL);
1673 if (local_outcome.ai)
1674 evutil_freeaddrinfo(local_outcome.ai);
1677 if (a_out[i].ai)
1678 evutil_freeaddrinfo(a_out[i].ai);