Searched refs:nserv (Results 1 – 2 of 2) sorted by relevance
176 int nserv = 0; /* number of nameserver records read from file */ in __res_vinit() local204 u[nserv].sin.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1); in __res_vinit()206 u[nserv].sin.sin_addr.s_addr = INADDR_ANY; in __res_vinit()208 u[nserv].sin.sin_family = AF_INET; in __res_vinit()209 u[nserv].sin.sin_port = htons(NAMESERVER_PORT); in __res_vinit()211 u[nserv].sin.sin_len = sizeof(struct sockaddr_in); in __res_vinit()213 nserv++; in __res_vinit()216 u[nserv].sin6.sin6_addr = in6addr_loopback; in __res_vinit()218 u[nserv].sin6.sin6_addr = in6addr_any; in __res_vinit()220 u[nserv].sin6.sin6_family = AF_INET6; in __res_vinit()[all …]
2177 int nserv; in _resolv_populate_res_for_net() local2180 for (nserv = 0; nserv < MAXNS; nserv++) { in _resolv_populate_res_for_net()2181 ai = info->nsaddrinfo[nserv]; in _resolv_populate_res_for_net()2188 memcpy(&statp->_u._ext.ext->nsaddrs[nserv], ai->ai_addr, ai->ai_addrlen); in _resolv_populate_res_for_net()2189 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()2193 memcpy(&statp->nsaddr_list[nserv], ai->ai_addr, in _resolv_populate_res_for_net()2196 statp->nsaddr_list[nserv].sin_family = AF_UNSPEC; in _resolv_populate_res_for_net()2203 statp->nscount = nserv; in _resolv_populate_res_for_net()