Home
last modified time | relevance | path

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

/bionic/libc/dns/resolv/
Dres_init.c376 sizeof(statp->nsaddr_list[nserv])) { in __res_vinit()
377 memcpy(&statp->nsaddr_list[nserv], in __res_vinit()
380 statp->nsaddr_list[nserv].sin_family = 0; in __res_vinit()
691 if (size <= sizeof(statp->nsaddr_list[nserv])) in res_setservers()
692 memcpy(&statp->nsaddr_list[nserv], in res_setservers()
695 statp->nsaddr_list[nserv].sin_family = 0; in res_setservers()
705 if (size <= sizeof(statp->nsaddr_list[nserv])) in res_setservers()
706 memcpy(&statp->nsaddr_list[nserv], in res_setservers()
709 statp->nsaddr_list[nserv].sin_family = 0; in res_setservers()
734 family = statp->nsaddr_list[i].sin_family; in res_getservers()
[all …]
Dres_send.c402 if (statp->nsaddr_list[ns].sin_family && in res_nsend()
403 !sock_eq((struct sockaddr *)(void *)&statp->nsaddr_list[ns], in res_nsend()
437 if (!statp->nsaddr_list[ns].sin_family) in res_nsend()
440 statp->nsaddr_list[ns]; in res_nsend()
459 ina = statp->nsaddr_list[0]; in res_nsend()
466 statp->nsaddr_list[ns] = statp->nsaddr_list[ns + 1]; in res_nsend()
472 statp->nsaddr_list[lastns] = ina; in res_nsend()
707 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) { in get_nsaddr()
720 return (struct sockaddr *)(void *)&statp->nsaddr_list[n]; in get_nsaddr()
Dres_cache.c2185 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()
2188 <= sizeof(statp->nsaddr_list[0])) { in _resolv_populate_res_for_net()
2189 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, in _resolv_populate_res_for_net()
2192 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()
/bionic/libc/dns/include/
Dresolv_private.h153 nsaddr_list[MAXNS]; /* address of name server */ member
154 #define nsaddr nsaddr_list[0] /* for backward compatibility */