Home | History | Annotate | Download | only in resolv

Lines Matching refs:nserv

176 	int nserv = 0;    /* number of nameserver records read from file */
204 u[nserv].sin.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1);
206 u[nserv].sin.sin_addr.s_addr = INADDR_ANY;
208 u[nserv].sin.sin_family = AF_INET;
209 u[nserv].sin.sin_port = htons(NAMESERVER_PORT);
211 u[nserv].sin.sin_len = sizeof(struct sockaddr_in);
213 nserv++;
216 u[nserv].sin6.sin6_addr = in6addr_loopback;
218 u[nserv].sin6.sin6_addr = in6addr_any;
220 u[nserv].sin6.sin6_family = AF_INET6;
221 u[nserv].sin6.sin6_port = htons(NAMESERVER_PORT);
223 u[nserv].sin6.sin6_len = sizeof(struct sockaddr_in6);
225 nserv++;
243 res_setservers(statp, u, nserv);
282 if (nserv > 0)
283 statp->nscount = nserv;
292 nserv = 0;
353 if (MATCH(buf, "nameserver") && nserv < MAXNS) {
372 memcpy(&statp->_u._ext.ext->nsaddrs[nserv],
376 sizeof(statp->nsaddr_list[nserv])) {
377 memcpy(&statp->nsaddr_list[nserv],
380 statp->nsaddr_list[nserv].sin_family = 0;
382 nserv++;
434 if (nserv > 0)
435 statp->nscount = nserv;
445 if(nserv == 0)
446 nserv = get_nameservers(statp);
485 if (nserv > 0) {
486 statp->nscount = nserv;
674 int i, nserv;
683 nserv = 0;
684 for (i = 0; i < cnt && nserv < MAXNS; i++) {
689 memcpy(&statp->_u._ext.ext->nsaddrs[nserv],
691 if (size <= sizeof(statp->nsaddr_list[nserv]))
692 memcpy(&statp->nsaddr_list[nserv],
695 statp->nsaddr_list[nserv].sin_family = 0;
696 nserv++;
703 memcpy(&statp->_u._ext.ext->nsaddrs[nserv],
705 if (size <= sizeof(statp->nsaddr_list[nserv]))
706 memcpy(&statp->nsaddr_list[nserv],
709 statp->nsaddr_list[nserv].sin_family = 0;
710 nserv++;
719 statp->nscount = nserv;