• Home
  • Raw
  • Download

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()
87 struct ares_addr_port_node **servers) in ares_get_servers_ports() argument
118 srvr_curr->family = channel->servers[i].addr.family; in ares_get_servers_ports()
119 srvr_curr->udp_port = ntohs((unsigned short)channel->servers[i].addr.udp_port); in ares_get_servers_ports()
120 srvr_curr->tcp_port = ntohs((unsigned short)channel->servers[i].addr.tcp_port); in ares_get_servers_ports()
122 memcpy(&srvr_curr->addrV4, &channel->servers[i].addr.addrV4, in ares_get_servers_ports()
125 memcpy(&srvr_curr->addrV6, &channel->servers[i].addr.addrV6, in ares_get_servers_ports()
138 *servers = srvr_head; in ares_get_servers_ports()
144 struct ares_addr_node *servers) in ares_set_servers() argument
161 for (srvr = servers; srvr; srvr = srvr->next) in ares_set_servers()
169 channel->servers = ares_malloc(num_srvrs * sizeof(struct server_state)); in ares_set_servers()
170 if (!channel->servers) in ares_set_servers()
176 for (i = 0, srvr = servers; srvr; i++, srvr = srvr->next) in ares_set_servers()
178 channel->servers[i].addr.family = srvr->family; in ares_set_servers()
179 channel->servers[i].addr.udp_port = 0; in ares_set_servers()
180 channel->servers[i].addr.tcp_port = 0; in ares_set_servers()
182 memcpy(&channel->servers[i].addr.addrV4, &srvr->addrV4, in ares_set_servers()
185 memcpy(&channel->servers[i].addr.addrV6, &srvr->addrV6, in ares_set_servers()
196 struct ares_addr_port_node *servers) in ares_set_servers_ports() argument
213 for (srvr = servers; srvr; srvr = srvr->next) in ares_set_servers_ports()
221 channel->servers = ares_malloc(num_srvrs * sizeof(struct server_state)); in ares_set_servers_ports()
222 if (!channel->servers) in ares_set_servers_ports()
228 for (i = 0, srvr = servers; srvr; i++, srvr = srvr->next) in ares_set_servers_ports()
230 channel->servers[i].addr.family = srvr->family; in ares_set_servers_ports()
231 channel->servers[i].addr.udp_port = htons((unsigned short)srvr->udp_port); in ares_set_servers_ports()
232 channel->servers[i].addr.tcp_port = htons((unsigned short)srvr->tcp_port); in ares_set_servers_ports()
234 memcpy(&channel->servers[i].addr.addrV4, &srvr->addrV4, in ares_set_servers_ports()
237 memcpy(&channel->servers[i].addr.addrV6, &srvr->addrV6, in ares_set_servers_ports()
258 struct ares_addr_port_node *servers = NULL; in set_servers_csv() local
370 servers = s; in set_servers_csv()
381 rv = ares_set_servers_ports(channel, servers); in set_servers_csv()
386 while (servers) { in set_servers_csv()
387 struct ares_addr_port_node *s = servers; in set_servers_csv()
388 servers = servers->next; in set_servers_csv()