Lines Matching refs:ext
132 #define EXT(res) ((res)->_u._ext)
244 if (EXT(statp).ext == NULL)
397 if (EXT(statp).nscount != 0) {
402 if (EXT(statp).nscount != statp->nscount)
408 (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) {
413 if (EXT(statp).nssocks[ns] == -1)
416 if (getsockname(EXT(statp).nssocks[ns],
429 EXT(statp).nscount = 0;
436 if (EXT(statp).nscount == 0) {
438 EXT(statp).nstimes[ns] = RES_MAXTIME;
439 EXT(statp).nssocks[ns] = -1;
442 EXT(statp).ext->nsaddrs[ns].sin =
445 EXT(statp).nscount = statp->nscount;
460 if (EXT(statp).ext != NULL)
461 inu = EXT(statp).ext->nsaddrs[0];
463 fd = EXT(statp).nssocks[0];
464 nstime = EXT(statp).nstimes[0];
466 if (EXT(statp).ext != NULL)
467 EXT(statp).ext->nsaddrs[ns] =
468 EXT(statp).ext->nsaddrs[ns + 1];
470 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1];
471 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1];
473 if (EXT(statp).ext != NULL)
474 EXT(statp).ext->nsaddrs[lastns] = inu;
476 EXT(statp).nssocks[lastns] = fd;
477 EXT(statp).nstimes[lastns] = nstime;
654 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) {
656 * - EXT(statp).ext->nsaddrs[n] holds an address that is larger
660 return (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[n];
665 * EXT(statp).ext->nsaddrs[n].
879 if (EXT(statp).nssocks[ns] == -1) {
880 EXT(statp).nssocks[ns] = socket(nsap->sa_family, SOCK_DGRAM, 0);
881 if (EXT(statp).nssocks[ns] > highestFD) {
885 if (EXT(statp).nssocks[ns] < 0) {
912 if (random_bind(EXT(statp).nssocks[ns], nsap->sa_family) < 0) {
918 if (connect(EXT(statp).nssocks[ns], nsap, (socklen_t)nsaplen) < 0) {
928 s = EXT(statp).nssocks[ns];