Lines Matching defs:nserv
174 int nserv = 0; /* number of nameserver records read from file */
194 u[nserv].sin.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1);
196 u[nserv].sin.sin_addr.s_addr = INADDR_ANY;
198 u[nserv].sin.sin_family = AF_INET;
199 u[nserv].sin.sin_port = htons(NAMESERVER_PORT);
201 u[nserv].sin.sin_len = sizeof(struct sockaddr_in);
203 nserv++;
206 u[nserv].sin6.sin6_addr = in6addr_loopback;
208 u[nserv].sin6.sin6_addr = in6addr_any;
210 u[nserv].sin6.sin6_family = AF_INET6;
211 u[nserv].sin6.sin6_port = htons(NAMESERVER_PORT);
213 u[nserv].sin6.sin6_len = sizeof(struct sockaddr_in6);
215 nserv++;
233 res_setservers(statp, u, nserv);
270 if (nserv > 0)
271 statp->nscount = nserv;
280 nserv = 0;
341 if (MATCH(buf, "nameserver") && nserv < MAXNS) {
360 memcpy(&statp->_u._ext.ext->nsaddrs[nserv],
364 sizeof(statp->nsaddr_list[nserv])) {
365 memcpy(&statp->nsaddr_list[nserv],
368 statp->nsaddr_list[nserv].sin_family = 0;
370 nserv++;
422 if (nserv > 0)
423 statp->nscount = nserv;
433 if(nserv == 0)
434 nserv = get_nameservers(statp);
473 if (nserv > 0) {
474 statp->nscount = nserv;
698 int i, nserv;
707 nserv = 0;
708 for (i = 0; i < cnt && nserv < MAXNS; i++) {
713 memcpy(&statp->_u._ext.ext->nsaddrs[nserv],
715 if (size <= sizeof(statp->nsaddr_list[nserv]))
716 memcpy(&statp->nsaddr_list[nserv],
720 statp->nsaddr_list[nserv].sin_family = 0;
722 nserv++;
729 memcpy(&statp->_u._ext.ext->nsaddrs[nserv],
731 if (size <= sizeof(statp->nsaddr_list[nserv]))
732 memcpy(&statp->nsaddr_list[nserv],
735 statp->nsaddr_list[nserv].sin_family = 0;
736 nserv++;
745 statp->nscount = nserv;