Lines Matching refs:ai_res
16 struct addrinfo *ai_res; in do_test() local
20 s = getaddrinfo (addr, NULL, &hints, &ai_res); \ in do_test()
28 ai_res = NULL; \ in do_test()
35 else if (ai_res->ai_family != fam) \ in do_test()
39 no, ai_res->ai_family, fam); \ in do_test()
44 if (ai_res->ai_addrlen != sizeof (struct sockaddr_in)) \ in do_test()
47 no, (size_t) ai_res->ai_addrlen, \ in do_test()
52 inet_ntoa (((struct sockaddr_in *) ai_res->ai_addr)->sin_addr))\ in do_test()
57 inet_ntoa (((struct sockaddr_in *) ai_res->ai_addr)->sin_addr), \ in do_test()
66 if (ai_res->ai_addrlen != sizeof (struct sockaddr_in6)) \ in do_test()
69 no, (size_t) ai_res->ai_addrlen, \ in do_test()
75 &((struct sockaddr_in6 *) ai_res->ai_addr)->sin6_addr,\ in do_test()
82 & ((struct sockaddr_in6 *) ai_res->ai_addr)->sin6_addr, \ in do_test()
88 if (ai_res != NULL && ai_res->ai_next != NULL) \ in do_test()
93 freeaddrinfo (ai_res) in do_test()