Lines Matching refs:nssocks
436 if (statp->_u._ext.nssocks[ns] == -1) continue; in res_nsend()
438 if (getpeername(statp->_u._ext.nssocks[ns], (struct sockaddr*) (void*) &peer, in res_nsend()
461 statp->_u._ext.nssocks[ns] = -1; in res_nsend()
481 fd = statp->_u._ext.nssocks[0]; in res_nsend()
487 statp->_u._ext.nssocks[ns] = statp->_u._ext.nssocks[ns + 1]; in res_nsend()
492 statp->_u._ext.nssocks[lastns] = fd; in res_nsend()
989 if (statp->_u._ext.nssocks[ns] == -1) { in send_dg()
990 statp->_u._ext.nssocks[ns] = socket(nsap->sa_family, SOCK_DGRAM | SOCK_CLOEXEC, 0); in send_dg()
991 if (statp->_u._ext.nssocks[ns] < 0) { in send_dg()
1005 fchown(statp->_u._ext.nssocks[ns], AID_DNS, -1); in send_dg()
1007 if (setsockopt(statp->_u._ext.nssocks[ns], SOL_SOCKET, SO_MARK, &(statp->_mark), in send_dg()
1025 if (random_bind(statp->_u._ext.nssocks[ns], nsap->sa_family) < 0) { in send_dg()
1030 if (connect(statp->_u._ext.nssocks[ns], nsap, (socklen_t) nsaplen) < 0) { in send_dg()
1038 s = statp->_u._ext.nssocks[ns]; in send_dg()