Lines Matching defs:EXT

165 #define EXT(res) ((res)->_u._ext)
228 if (EXT(statp).ext == NULL)
353 if (statp->nscount == 0 || EXT(statp).ext == NULL) {
377 if (EXT(statp).nscount != 0) {
382 if (EXT(statp).nscount != statp->nscount)
388 (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) {
393 if (EXT(statp).nssocks[ns] == -1)
396 if (getpeername(EXT(statp).nssocks[ns],
409 EXT(statp).nscount = 0;
416 if (EXT(statp).nscount == 0) {
418 EXT(statp).nstimes[ns] = RES_MAXTIME;
419 EXT(statp).nssocks[ns] = -1;
422 EXT(statp).ext->nsaddrs[ns].sin =
425 EXT(statp).nscount = statp->nscount;
440 if (EXT(statp).ext != NULL)
441 inu = EXT(statp).ext->nsaddrs[0];
443 fd = EXT(statp).nssocks[0];
444 nstime = EXT(statp).nstimes[0];
446 if (EXT(statp).ext != NULL)
447 EXT(statp).ext->nsaddrs[ns] =
448 EXT(statp).ext->nsaddrs[ns + 1];
450 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1];
451 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1];
453 if (EXT(statp).ext != NULL)
454 EXT(statp).ext->nsaddrs[lastns] = inu;
456 EXT(statp).nssocks[lastns] = fd;
457 EXT(statp).nstimes[lastns] = nstime;
641 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) {
643 * - EXT(statp).ext->nsaddrs[n] holds an address that is larger
647 return (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[n];
652 * EXT(statp).ext->nsaddrs[n].
894 if (EXT(statp).nssocks[ns] == -1) {
895 EXT(statp).nssocks[ns] = socket(nsap->sa_family, SOCK_DGRAM
898 fcntl(EXT(statp)nssocks[ns], F_SETFD, FD_CLOEXEC);
901 if (EXT(statp).nssocks[ns] > highestFD) {
906 if (EXT(statp).nssocks[ns] < 0) {
941 connect(EXT(statp).nssocks[ns], nsap, nsaplen) < 0) {
951 s = EXT(statp).nssocks[ns];