Home
last modified time | relevance | path

Searched refs:ai (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/dns/net/
Dgetaddrinfo.c274 #define GET_AI(ai, afd, addr) \ argument
277 (ai) = get_ai(pai, (afd), (addr)); \
278 if ((ai) == NULL) { \
284 #define GET_PORT(ai, serv) \ argument
287 error = get_port((ai), (serv), 0); \
292 #define GET_CANONNAME(ai, str) \ argument
295 error = get_canonname(pai, (ai), (str)); \
325 freeaddrinfo(struct addrinfo *ai) in freeaddrinfo() argument
330 if (ai == NULL) return; in freeaddrinfo()
332 _DIAGASSERT(ai != NULL); in freeaddrinfo()
[all …]
/bionic/tests/
Dnetdb_test.cpp34 addrinfo* ai = nullptr; in TEST() local
35 ASSERT_EQ(0, getaddrinfo(nullptr, "smtp", nullptr, &ai)); in TEST()
37 ASSERT_EQ(25U, ntohs(reinterpret_cast<sockaddr_in*>(ai->ai_addr)->sin_port)); in TEST()
38 freeaddrinfo(ai); in TEST()
43 addrinfo* ai = nullptr; in TEST() local
44 ASSERT_EQ(0, getaddrinfo("localhost", nullptr, nullptr, &ai)); in TEST()
45 ASSERT_TRUE(ai != nullptr); in TEST()
46 freeaddrinfo(ai); in TEST()
50 addrinfo* ai = nullptr; in TEST() local
51 ASSERT_EQ(0, getaddrinfo("localhost", "9999", nullptr, &ai)); in TEST()
[all …]
/bionic/libc/dns/resolv/
Dres_init.c354 struct addrinfo hints, *ai; in __res_vinit() local
369 if (getaddrinfo(cp, sbuf, &hints, &ai) == 0 && in __res_vinit()
370 ai->ai_addrlen <= minsiz) { in __res_vinit()
373 ai->ai_addr, ai->ai_addrlen); in __res_vinit()
375 if (ai->ai_addrlen <= in __res_vinit()
378 ai->ai_addr, ai->ai_addrlen); in __res_vinit()
381 freeaddrinfo(ai); in __res_vinit()
Dres_cache.c2178 struct addrinfo* ai; in _resolv_populate_res_for_net() local
2181 ai = info->nsaddrinfo[nserv]; in _resolv_populate_res_for_net()
2182 if (ai == NULL) { in _resolv_populate_res_for_net()
2186 if ((size_t) ai->ai_addrlen <= sizeof(statp->_u._ext.ext->nsaddrs[0])) { in _resolv_populate_res_for_net()
2188 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net()
2191 if ((size_t) ai->ai_addrlen in _resolv_populate_res_for_net()
2193 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, in _resolv_populate_res_for_net()
2194 ai->ai_addrlen); in _resolv_populate_res_for_net()
/bionic/libc/kernel/uapi/linux/
Dkvm.h475 #define KVM_S390_INT_IO(ai,cssid,ssid,schid) (((schid)) | ((ssid) << 16) | ((cssid) << 18) | ((ai) … argument