Searched refs:ns (Results 1 – 3 of 3) sorted by relevance
/bionic/libc/netbsd/resolv/ |
D | res_send.c | 237 int ns; in res_ourserver_p() local 242 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 243 srv = (struct sockaddr_in *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p() 255 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 256 srv6 = (struct sockaddr_in6 *)(void *)get_nsaddr(statp, (size_t)ns); in res_ourserver_p() 366 int gotsomewhere, terrno, try, v_circuit, resplen, ns, n; in res_nsend() local 426 for (ns = 0; ns < statp->nscount; ns++) { in res_nsend() 427 if (statp->nsaddr_list[ns].sin_family && in res_nsend() 428 !sock_eq((struct sockaddr *)(void *)&statp->nsaddr_list[ns], in res_nsend() 429 (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) { in res_nsend() [all …]
|
D | res_init.c | 658 int ns; in res_nclose() local 665 for (ns = 0; ns < statp->_u._ext.nscount; ns++) { in res_nclose() 666 if (statp->_u._ext.nssocks[ns] != -1) { in res_nclose() 667 (void) close(statp->_u._ext.nssocks[ns]); in res_nclose() 668 statp->_u._ext.nssocks[ns] = -1; in res_nclose()
|
D | res_cache.c | 2155 char** ns; in _resolv_is_nameservers_equal_locked() local 2161 ns = cache_info->nameservers; in _resolv_is_nameservers_equal_locked() 2163 while(*ns) { in _resolv_is_nameservers_equal_locked() 2164 if (strcmp(*ns, servers[i]) == 0) { in _resolv_is_nameservers_equal_locked() 2168 ns++; in _resolv_is_nameservers_equal_locked() 2209 char* ns; in _get_nameserver_locked() local 2217 ns = cache_info->nameservers[n - 1]; in _get_nameserver_locked() 2218 if (ns) { in _get_nameserver_locked() 2219 len = strlen(ns); in _get_nameserver_locked() 2221 strncpy(addr, ns, len); in _get_nameserver_locked()
|