Lines Matching refs:EXT
134 #define EXT(res) ((res)->_u._ext) macro
241 if (EXT(statp).ext == NULL) in res_ourserver_p()
393 if (EXT(statp).nscount != 0) { in res_nsend()
398 if (EXT(statp).nscount != statp->nscount) { in res_nsend()
404 (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) { in res_nsend()
409 if (EXT(statp).nssocks[ns] == -1) in res_nsend()
412 if (getpeername(EXT(statp).nssocks[ns], in res_nsend()
426 EXT(statp).nscount = 0; in res_nsend()
433 if (EXT(statp).nscount == 0) { in res_nsend()
435 EXT(statp).nstimes[ns] = RES_MAXTIME; in res_nsend()
436 EXT(statp).nssocks[ns] = -1; in res_nsend()
439 EXT(statp).ext->nsaddrs[ns].sin = in res_nsend()
442 EXT(statp).nscount = statp->nscount; in res_nsend()
457 if (EXT(statp).ext != NULL) in res_nsend()
458 inu = EXT(statp).ext->nsaddrs[0]; in res_nsend()
460 fd = EXT(statp).nssocks[0]; in res_nsend()
461 nstime = EXT(statp).nstimes[0]; in res_nsend()
463 if (EXT(statp).ext != NULL) in res_nsend()
464 EXT(statp).ext->nsaddrs[ns] = in res_nsend()
465 EXT(statp).ext->nsaddrs[ns + 1]; in res_nsend()
467 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1]; in res_nsend()
468 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1]; in res_nsend()
470 if (EXT(statp).ext != NULL) in res_nsend()
471 EXT(statp).ext->nsaddrs[lastns] = inu; in res_nsend()
473 EXT(statp).nssocks[lastns] = fd; in res_nsend()
474 EXT(statp).nstimes[lastns] = nstime; in res_nsend()
707 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) { in get_nsaddr()
713 return (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[n]; in get_nsaddr()
1088 if (EXT(statp).nssocks[ns] == -1) { in send_dg()
1089 EXT(statp).nssocks[ns] = socket(nsap->sa_family, SOCK_DGRAM | SOCK_CLOEXEC, 0); in send_dg()
1090 if (EXT(statp).nssocks[ns] < 0) { in send_dg()
1106 fchown(EXT(statp).nssocks[ns], AID_DNS, -1); in send_dg()
1108 if (setsockopt(EXT(statp).nssocks[ns], SOL_SOCKET, in send_dg()
1126 if (random_bind(EXT(statp).nssocks[ns], nsap->sa_family) < 0) { in send_dg()
1132 if (__connect(EXT(statp).nssocks[ns], nsap, (socklen_t)nsaplen) < 0) { in send_dg()
1143 s = EXT(statp).nssocks[ns]; in send_dg()