Home
last modified time | relevance | path

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

/bionic/libc/dns/resolv/
Dres_init.c375 sizeof(statp->nsaddr_list[nserv])) { in __res_vinit()
376 memcpy(&statp->nsaddr_list[nserv], in __res_vinit()
379 statp->nsaddr_list[nserv].sin_family = 0; in __res_vinit()
731 if (size <= sizeof(statp->nsaddr_list[nserv])) in res_setservers()
732 memcpy(&statp->nsaddr_list[nserv], in res_setservers()
735 statp->nsaddr_list[nserv].sin_family = 0; in res_setservers()
745 if (size <= sizeof(statp->nsaddr_list[nserv])) in res_setservers()
746 memcpy(&statp->nsaddr_list[nserv], in res_setservers()
749 statp->nsaddr_list[nserv].sin_family = 0; in res_setservers()
774 family = statp->nsaddr_list[i].sin_family; in res_getservers()
[all …]
Dres_send.c423 if (statp->nsaddr_list[ns].sin_family && in res_nsend()
424 !sock_eq((struct sockaddr *)(void *)&statp->nsaddr_list[ns], in res_nsend()
457 if (!statp->nsaddr_list[ns].sin_family) in res_nsend()
460 statp->nsaddr_list[ns]; in res_nsend()
479 ina = statp->nsaddr_list[0]; in res_nsend()
486 statp->nsaddr_list[ns] = statp->nsaddr_list[ns + 1]; in res_nsend()
492 statp->nsaddr_list[lastns] = ina; in res_nsend()
698 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) {
711 return (struct sockaddr *)(void *)&statp->nsaddr_list[n];
Dres_cache.c2074 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()
2077 <= sizeof(statp->nsaddr_list[0])) { in _resolv_populate_res_for_net()
2078 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, in _resolv_populate_res_for_net()
2081 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()
/bionic/libc/dns/include/
Dresolv_private.h158 nsaddr_list[MAXNS]; /* address of name server */ member
159 #define nsaddr nsaddr_list[0] /* for backward compatibility */