Lines Matching refs:servers
32 struct ares_addr_node **servers) in ares_get_servers() argument
63 srvr_curr->family = channel->servers[i].addr.family; in ares_get_servers()
65 memcpy(&srvr_curr->addrV4, &channel->servers[i].addr.addrV4, in ares_get_servers()
68 memcpy(&srvr_curr->addrV6, &channel->servers[i].addr.addrV6, in ares_get_servers()
81 *servers = srvr_head; in ares_get_servers()
88 struct ares_addr_node *servers) in ares_set_servers() argument
102 for (srvr = servers; srvr; srvr = srvr->next) in ares_set_servers()
110 channel->servers = malloc(num_srvrs * sizeof(struct server_state)); in ares_set_servers()
111 if (!channel->servers) in ares_set_servers()
117 for (i = 0, srvr = servers; srvr; i++, srvr = srvr->next) in ares_set_servers()
119 channel->servers[i].addr.family = srvr->family; in ares_set_servers()
121 memcpy(&channel->servers[i].addr.addrV4, &srvr->addrV4, in ares_set_servers()
124 memcpy(&channel->servers[i].addr.addrV6, &srvr->addrV6, in ares_set_servers()
143 struct ares_addr_node *servers = NULL; in ares_set_servers_csv() local
226 servers = s; in ares_set_servers_csv()
236 rv = ares_set_servers(channel, servers); in ares_set_servers_csv()
241 while (servers) { in ares_set_servers_csv()
242 struct ares_addr_node *s = servers; in ares_set_servers_csv()
243 servers = servers->next; in ares_set_servers_csv()