Lines Matching defs:nservers
86 static int config_nameserver(struct server_state **servers, int *nservers,
107 x->nservers > -1 && \
162 channel->nservers = -1;
256 if ((channel->flags & ARES_FLAG_PRIMARY) && channel->nservers > 1)
257 channel->nservers = 1;
301 for (i = 0; i < src->nservers; i++)
357 if (channel->nservers) {
358 for (i = 0; i < channel->nservers; i++)
367 for (i = j = 0; i < channel->nservers; i++)
376 options->nservers = ipv4_nservers;
450 if ((optmask & ARES_OPT_SERVERS) && channel->nservers == -1)
453 if (options->nservers > 0)
456 malloc(options->nservers * sizeof(struct server_state));
459 for (i = 0; i < options->nservers; i++)
467 channel->nservers = options->nservers;
793 int status = -1, nservers = 0, nsort = 0;
830 if (channel->nservers > -1) /* don't override ARES_OPT_SERVER */
835 status = config_nameserver(&servers, &nservers, buf);
853 status = config_nameserver(&servers, &nservers, line);
858 status = config_nameserver(&servers, &nservers, line);
864 status = config_nameserver(&servers, &nservers, line);
869 status = config_nameserver(&servers, &nservers, line);
897 status = config_nameserver(&servers, &nservers, line);
931 status = config_nameserver(&servers, &nservers, pos);
952 nservers = i;
967 status = config_nameserver(&servers, &nservers, value);
992 channel->nservers == -1)
993 status = config_nameserver(&servers, &nservers, p);
1128 channel->nservers = nservers;
1164 if (channel->nservers == -1) {
1173 channel->nservers = 1;
1320 static int config_nameserver(struct server_state **servers, int *nservers,
1360 newserv = realloc(*servers, (*nservers + 1) *
1366 newserv[*nservers].addr.family = host.family;
1368 memcpy(&newserv[*nservers].addr.addrV4, &host.addrV4,
1371 memcpy(&newserv[*nservers].addr.addrV6, &host.addrV6,
1376 *nservers += 1;
1790 for (i = 0; i < channel->nservers; i++)