• Home
  • Raw
  • Download

Lines Matching refs:_ext

284             if (statp->_u._ext.ext == NULL) break;  in res_ourserver_p()
420 if (statp->_u._ext.nscount != 0) { in res_nsend()
425 if (statp->_u._ext.nscount != statp->nscount) { in res_nsend()
431 (struct sockaddr*) (void*) &statp->_u._ext.ext->nsaddrs[ns])) { in res_nsend()
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()
451 statp->_u._ext.nscount = 0; in res_nsend()
458 if (statp->_u._ext.nscount == 0) { in res_nsend()
460 statp->_u._ext.nstimes[ns] = RES_MAXTIME; in res_nsend()
461 statp->_u._ext.nssocks[ns] = -1; in res_nsend()
463 statp->_u._ext.ext->nsaddrs[ns].sin = statp->nsaddr_list[ns]; in res_nsend()
465 statp->_u._ext.nscount = statp->nscount; in res_nsend()
479 if (statp->_u._ext.ext != NULL) inu = statp->_u._ext.ext->nsaddrs[0]; in res_nsend()
481 fd = statp->_u._ext.nssocks[0]; in res_nsend()
482 nstime = statp->_u._ext.nstimes[0]; in res_nsend()
484 if (statp->_u._ext.ext != NULL) in res_nsend()
485 statp->_u._ext.ext->nsaddrs[ns] = statp->_u._ext.ext->nsaddrs[ns + 1]; in res_nsend()
487 statp->_u._ext.nssocks[ns] = statp->_u._ext.nssocks[ns + 1]; in res_nsend()
488 statp->_u._ext.nstimes[ns] = statp->_u._ext.nstimes[ns + 1]; in res_nsend()
490 if (statp->_u._ext.ext != NULL) statp->_u._ext.ext->nsaddrs[lastns] = inu; in res_nsend()
492 statp->_u._ext.nssocks[lastns] = fd; in res_nsend()
493 statp->_u._ext.nstimes[lastns] = nstime; in res_nsend()
669 if (!statp->nsaddr_list[n].sin_family && statp->_u._ext.ext) { in get_nsaddr()
675 return (struct sockaddr*) (void*) &statp->_u._ext.ext->nsaddrs[n]; in get_nsaddr()
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()