Lines Matching defs:servers
32 struct ares_addr_node **servers)
63 srvr_curr->family = channel->servers[i].addr.family;
65 memcpy(&srvr_curr->addrV4, &channel->servers[i].addr.addrV4,
68 memcpy(&srvr_curr->addrV6, &channel->servers[i].addr.addrV6,
81 *servers = srvr_head;
88 struct ares_addr_node *servers)
102 for (srvr = servers; srvr; srvr = srvr->next)
109 /* Allocate storage for servers state */
110 channel->servers = malloc(num_srvrs * sizeof(struct server_state));
111 if (!channel->servers)
116 /* Fill servers state address data */
117 for (i = 0, srvr = servers; srvr; i++, srvr = srvr->next)
119 channel->servers[i].addr.family = srvr->family;
121 memcpy(&channel->servers[i].addr.addrV4, &srvr->addrV4,
124 memcpy(&channel->servers[i].addr.addrV6, &srvr->addrV6,
127 /* Initialize servers state remaining data */
143 struct ares_addr_node *servers = NULL;
156 return ARES_SUCCESS; /* blank all servers */
226 servers = s;
236 rv = ares_set_servers(channel, servers);
241 while (servers) {
242 struct ares_addr_node *s = servers;
243 servers = servers->next;