• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/ntp/sntp/libevent/test/

Lines Matching refs:a_out

1316 	struct gai_outcome a_out[12];
1325 memset(&a_out, 0, sizeof(a_out));
1497 &hints, gai_cb, &a_out[0]);
1502 &hints, gai_cb, &a_out[1]);
1508 &hints, gai_cb, &a_out[2]);
1515 &hints, gai_cb, &a_out[3]);
1522 &hints, gai_cb, &a_out[4]);
1528 &hints, gai_cb, &a_out[5]);
1535 &hints, gai_cb, &a_out[6]);
1542 &hints, gai_cb, &a_out[7]);
1549 "8008", &hints, gai_cb, &a_out[8]);
1556 "8009", &hints, gai_cb, &a_out[9]);
1564 &hints, gai_cb, &a_out[10]);
1569 &hints, gai_cb, &a_out[11]);
1591 tt_int_op(a_out[0].err, ==, 0);
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");
1605 tt_int_op(a_out[1].err, ==, 0);
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);
1613 tt_int_op(a_out[2].err, ==, 0);
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);
1619 tt_int_op(a_out[3].err, ==, 0);
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);
1625 tt_int_op(a_out[4].err, ==, 0);
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);
1631 tt_int_op(a_out[5].err, ==, EVUTIL_EAI_NONAME);
1632 tt_assert(! a_out[5].ai);
1635 tt_int_op(a_out[6].err, ==, EVUTIL_EAI_NONAME);
1636 tt_assert(! a_out[6].ai);
1639 tt_int_op(a_out[7].err, ==, 0);
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);
1645 tt_int_op(a_out[8].err, ==, EVUTIL_EAI_NONAME);
1646 tt_assert(! a_out[8].ai);
1649 tt_int_op(a_out[9].err, ==, 0);
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));
1663 tt_int_op(a_out[10].err, ==, 0);
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);
1669 tt_int_op(a_out[11].err, ==, EVUTIL_EAI_CANCEL);
1670 tt_assert(a_out[11].ai == NULL);
1676 for (i=0;i<(int)ARRAY_SIZE(a_out);++i) {
1677 if (a_out[i].ai)
1678 evutil_freeaddrinfo(a_out[i].ai);