Lines Matching defs:EXT
136 #define EXT(res) ((res)->_u._ext)
252 if (EXT(statp).ext == NULL)
418 if (EXT(statp).nscount != 0) {
423 if (EXT(statp).nscount != statp->nscount)
429 (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) {
434 if (EXT(statp).nssocks[ns] == -1)
437 if (getpeername(EXT(statp).nssocks[ns],
450 EXT(statp).nscount = 0;
457 if (EXT(statp).nscount == 0) {
459 EXT(statp).nstimes[ns] = RES_MAXTIME;
460 EXT(statp).nssocks[ns] = -1;
463 EXT(statp).ext->nsaddrs[ns].sin =
466 EXT(statp).nscount = statp->nscount;
481 if (EXT(statp).ext != NULL)
482 inu = EXT(statp).ext->nsaddrs[0];
484 fd = EXT(statp).nssocks[0];
485 nstime = EXT(statp).nstimes[0];
487 if (EXT(statp).ext != NULL)
488 EXT(statp).ext->nsaddrs[ns] =
489 EXT(statp).ext->nsaddrs[ns + 1];
491 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1];
492 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1];
494 if (EXT(statp).ext != NULL)
495 EXT(statp).ext->nsaddrs[lastns] = inu;
497 EXT(statp).nssocks[lastns] = fd;
498 EXT(statp).nstimes[lastns] = nstime;
702 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) {
704 * - EXT(statp).ext->nsaddrs[n] holds an address that is larger
708 return (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[n];
713 * EXT(statp).ext->nsaddrs[n].
1063 if (EXT(statp).nssocks[ns] == -1) {
1064 EXT(statp).nssocks[ns] = socket(nsap->sa_family, SOCK_DGRAM, 0);
1065 if (EXT(statp).nssocks[ns] > highestFD) {
1069 if (EXT(statp).nssocks[ns] < 0) {
1086 if (setsockopt(EXT(statp).nssocks[ns], SOL_SOCKET,
1104 if (random_bind(EXT(statp).nssocks[ns], nsap->sa_family) < 0) {
1110 if (connect(EXT(statp).nssocks[ns], nsap, (socklen_t)nsaplen) < 0) {
1121 s = EXT(statp).nssocks[ns];