Searched refs:ai_addr (Results 1 – 6 of 6) sorted by relevance
/bionic/libc/dns/net/ |
D | getaddrinfo.c | 477 ai->ai_addr = (struct sockaddr*)(ai + 1); in android_getaddrinfo_proxy() 510 if (fread(ai->ai_addr, addr_len, 1, proxy) != 1) { in android_getaddrinfo_proxy() 612 pai->ai_addr = NULL; in android_getaddrinfofornetcontext() 620 hints->ai_addr || hints->ai_next) in android_getaddrinfofornetcontext() 1067 sin6 = (struct sockaddr_in6 *)(void *)cur->ai_addr; in explore_numeric_scope() 1114 ai->ai_addr = (struct sockaddr *)(void *)(ai + 1); in get_ai() 1115 memset(ai->ai_addr, 0, (size_t)afd->a_socklen); in get_ai() 1118 ai->ai_addr->sa_len = afd->a_socklen; in get_ai() 1125 ai->ai_addr->sa_family = ai->ai_family = afd->a_af; in get_ai() 1126 p = (char *)(void *)(ai->ai_addr); in get_ai() [all …]
|
/bionic/tests/ |
D | netdb_test.cpp | 37 ASSERT_EQ(25U, ntohs(reinterpret_cast<sockaddr_in*>(ai->ai_addr)->sin_port)); in TEST() 76 ASSERT_EQ(25, ntohs(reinterpret_cast<sockaddr_in*>(ai->ai_addr)->sin_port)); in TEST() 107 ASSERT_TRUE(ai->ai_addr != nullptr); in TEST() 108 sockaddr_in6 *addr = reinterpret_cast<sockaddr_in6*>(ai->ai_addr); in TEST()
|
/bionic/libc/include/ |
D | netdb.h | 117 struct sockaddr *ai_addr; /* binary address */ member
|
/bionic/tests/headers/posix/ |
D | netdb_h.c | 69 STRUCT_MEMBER(struct addrinfo, struct sockaddr*, ai_addr); in netdb_h()
|
/bionic/libc/dns/resolv/ |
D | res_init.c | 373 ai->ai_addr, ai->ai_addrlen); in __res_vinit() 378 ai->ai_addr, ai->ai_addrlen); in __res_vinit()
|
D | res_cache.c | 2188 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net() 2193 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, in _resolv_populate_res_for_net() 2273 if (info->nsaddrinfo[i]->ai_addr == NULL) { in android_net_res_stats_get_info_for_net() 2288 memcpy(&servers[i], info->nsaddrinfo[i]->ai_addr, info->nsaddrinfo[i]->ai_addrlen); in android_net_res_stats_get_info_for_net()
|