Lines Matching refs:ai

1264 		struct evutil_addrinfo hints, *ai = NULL;  in test_bufferevent_connect_hostname()  local
1270 "nonesuch.nowhere.example.com", "80", &hints, &ai); in test_bufferevent_connect_hostname()
1322 struct evutil_addrinfo *ai; member
1333 go->ai = res; in gai_cb()
1387 tt_ptr_op(local_outcome.ai,!=,NULL); in test_getaddrinfo_async()
1388 test_ai_eq(local_outcome.ai, "1.2.3.4:80", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1389 evutil_freeaddrinfo(local_outcome.ai); in test_getaddrinfo_async()
1390 local_outcome.ai = NULL; in test_getaddrinfo_async()
1404 tt_ptr_op(local_outcome.ai,==,NULL); in test_getaddrinfo_async()
1415 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1416 tt_ptr_op(local_outcome.ai->ai_next,==,NULL); in test_getaddrinfo_async()
1417 test_ai_eq(local_outcome.ai, "[f::f]:8008", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1418 evutil_freeaddrinfo(local_outcome.ai); in test_getaddrinfo_async()
1419 local_outcome.ai = NULL; in test_getaddrinfo_async()
1429 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1430 a = ai_find_by_protocol(local_outcome.ai, IPPROTO_TCP); in test_getaddrinfo_async()
1433 a = ai_find_by_protocol(local_outcome.ai, IPPROTO_UDP); in test_getaddrinfo_async()
1436 evutil_freeaddrinfo(local_outcome.ai); in test_getaddrinfo_async()
1437 local_outcome.ai = NULL; in test_getaddrinfo_async()
1449 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1451 a = ai_find_by_family(local_outcome.ai, PF_INET); in test_getaddrinfo_async()
1455 a = ai_find_by_family(local_outcome.ai, PF_INET6); in test_getaddrinfo_async()
1458 evutil_freeaddrinfo(local_outcome.ai); in test_getaddrinfo_async()
1459 local_outcome.ai = NULL; in test_getaddrinfo_async()
1470 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1472 a = ai_find_by_family(local_outcome.ai, PF_INET); in test_getaddrinfo_async()
1476 a = ai_find_by_family(local_outcome.ai, PF_INET6); in test_getaddrinfo_async()
1479 evutil_freeaddrinfo(local_outcome.ai); in test_getaddrinfo_async()
1480 local_outcome.ai = NULL; in test_getaddrinfo_async()
1491 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1493 a = ai_find_by_family(local_outcome.ai, PF_INET); in test_getaddrinfo_async()
1497 a = ai_find_by_family(local_outcome.ai, PF_INET6); in test_getaddrinfo_async()
1500 evutil_freeaddrinfo(local_outcome.ai); in test_getaddrinfo_async()
1501 local_outcome.ai = NULL; in test_getaddrinfo_async()
1512 tt_assert(local_outcome.ai); in test_getaddrinfo_async()
1513 a = local_outcome.ai; in test_getaddrinfo_async()
1516 evutil_freeaddrinfo(local_outcome.ai); in test_getaddrinfo_async()
1517 local_outcome.ai = NULL; in test_getaddrinfo_async()
1630 tt_assert(a_out[0].ai); in test_getaddrinfo_async()
1631 tt_assert(a_out[0].ai->ai_next); in test_getaddrinfo_async()
1632 tt_assert(!a_out[0].ai->ai_next->ai_next); in test_getaddrinfo_async()
1633 a = ai_find_by_family(a_out[0].ai, PF_INET); in test_getaddrinfo_async()
1636 a = ai_find_by_family(a_out[0].ai, PF_INET6); in test_getaddrinfo_async()
1639 tt_assert(a_out[0].ai->ai_canonname); in test_getaddrinfo_async()
1640 tt_str_op(a_out[0].ai->ai_canonname, ==, "both-canonical.example.com"); in test_getaddrinfo_async()
1644 tt_assert(a_out[1].ai); in test_getaddrinfo_async()
1645 tt_assert(! a_out[1].ai->ai_next); in test_getaddrinfo_async()
1646 test_ai_eq(a_out[1].ai, "18.52.86.120:8001", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1647 tt_assert(a_out[1].ai->ai_canonname == NULL); in test_getaddrinfo_async()
1652 tt_assert(a_out[2].ai); in test_getaddrinfo_async()
1653 tt_assert(! a_out[2].ai->ai_next); in test_getaddrinfo_async()
1654 test_ai_eq(a_out[2].ai, "[b0b::f00d]:8002", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1658 tt_assert(a_out[3].ai); in test_getaddrinfo_async()
1659 tt_assert(! a_out[3].ai->ai_next); in test_getaddrinfo_async()
1660 test_ai_eq(a_out[3].ai, "18.52.86.120:8003", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1664 tt_assert(a_out[4].ai); in test_getaddrinfo_async()
1665 tt_assert(! a_out[4].ai->ai_next); in test_getaddrinfo_async()
1666 test_ai_eq(a_out[4].ai, "[b0b::f00d]:8004", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1670 tt_assert(! a_out[5].ai); in test_getaddrinfo_async()
1674 tt_assert(! a_out[6].ai); in test_getaddrinfo_async()
1678 tt_assert(a_out[7].ai); in test_getaddrinfo_async()
1679 tt_assert(! a_out[7].ai->ai_next); in test_getaddrinfo_async()
1680 test_ai_eq(a_out[7].ai, "171.205.239.1:8007", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1684 tt_assert(! a_out[8].ai); in test_getaddrinfo_async()
1688 tt_assert(a_out[9].ai); in test_getaddrinfo_async()
1689 a = ai_find_by_family(a_out[9].ai, PF_INET); in test_getaddrinfo_async()
1693 tt_assert(ai_find_by_family(a_out[9].ai, PF_INET6)); in test_getaddrinfo_async()
1694 a = ai_find_by_family(a_out[9].ai, PF_INET6); in test_getaddrinfo_async()
1698 tt_assert(ai_find_by_family(a_out[9].ai, PF_INET)); in test_getaddrinfo_async()
1702 tt_assert(a_out[10].ai); in test_getaddrinfo_async()
1703 tt_assert(! a_out[10].ai->ai_next); in test_getaddrinfo_async()
1704 test_ai_eq(a_out[10].ai, "[a0a::ff01]:8010", SOCK_STREAM, IPPROTO_TCP); in test_getaddrinfo_async()
1708 tt_assert(a_out[11].ai == NULL); in test_getaddrinfo_async()
1711 if (local_outcome.ai) in test_getaddrinfo_async()
1712 evutil_freeaddrinfo(local_outcome.ai); in test_getaddrinfo_async()
1714 if (a_out[i].ai) in test_getaddrinfo_async()
1715 evutil_freeaddrinfo(a_out[i].ai); in test_getaddrinfo_async()