Home
last modified time | relevance | path

Searched refs:nsaddr_list (Results 1 – 4 of 4) sorted by relevance

/system/netd/resolv/
Dres_init.cpp319 if (size <= sizeof(statp->nsaddr_list[nserv])) in res_setservers()
320 memcpy(&statp->nsaddr_list[nserv], &set->sin, size); in res_setservers()
322 statp->nsaddr_list[nserv].sin_family = 0; in res_setservers()
331 if (size <= sizeof(statp->nsaddr_list[nserv])) in res_setservers()
332 memcpy(&statp->nsaddr_list[nserv], &set->sin6, size); in res_setservers()
334 statp->nsaddr_list[nserv].sin_family = 0; in res_setservers()
356 family = statp->nsaddr_list[i].sin_family; in res_getservers()
364 memcpy(&set->sin, &statp->nsaddr_list[i], size); in res_getservers()
373 memcpy(&set->sin6, &statp->nsaddr_list[i], size); in res_getservers()
Dresolv_private.h93 struct sockaddr_in nsaddr_list[MAXNS]; /* address of name server */ member
94 #define nsaddr nsaddr_list[0] /* for backward compatibility */
Dres_send.cpp429 if (statp->nsaddr_list[ns].sin_family && in res_nsend()
430 !sock_eq((struct sockaddr*) (void*) &statp->nsaddr_list[ns], in res_nsend()
462 if (!statp->nsaddr_list[ns].sin_family) continue; in res_nsend()
463 statp->_u._ext.ext->nsaddrs[ns].sin = statp->nsaddr_list[ns]; in res_nsend()
480 ina = statp->nsaddr_list[0]; in res_nsend()
486 statp->nsaddr_list[ns] = statp->nsaddr_list[ns + 1]; in res_nsend()
491 statp->nsaddr_list[lastns] = ina; in res_nsend()
669 if (!statp->nsaddr_list[n].sin_family && statp->_u._ext.ext) { in get_nsaddr()
682 return (struct sockaddr*) (void*) &statp->nsaddr_list[n]; in get_nsaddr()
Dres_cache.cpp1889 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()
1891 if ((size_t) ai->ai_addrlen <= sizeof(statp->nsaddr_list[0])) { in _resolv_populate_res_for_net()
1892 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net()
1894 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()