EXT
if (EXT(statp).ext == NULL)
if (statp->nscount == 0 || EXT(statp).ext == NULL) {
if (EXT(statp).nscount != 0) {
if (EXT(statp).nscount != statp->nscount)
(struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[ns])) {
if (EXT(statp).nssocks[ns] == -1)
if (getpeername(EXT(statp).nssocks[ns],
EXT(statp).nscount = 0;
if (EXT(statp).nscount == 0) {
EXT(statp).nstimes[ns] = RES_MAXTIME;
EXT(statp).nssocks[ns] = -1;
EXT(statp).ext->nsaddrs[ns].sin =
EXT(statp).nscount = statp->nscount;
if (EXT(statp).ext != NULL)
inu = EXT(statp).ext->nsaddrs[0];
fd = EXT(statp).nssocks[0];
nstime = EXT(statp).nstimes[0];
if (EXT(statp).ext != NULL)
EXT(statp).ext->nsaddrs[ns] =
EXT(statp).ext->nsaddrs[ns + 1];
EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1];
EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1];
if (EXT(statp).ext != NULL)
EXT(statp).ext->nsaddrs[lastns] = inu;
EXT(statp).nssocks[lastns] = fd;
EXT(statp).nstimes[lastns] = nstime;
if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) {
return (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[n];
if (EXT(statp).nssocks[ns] == -1) {
EXT(statp).nssocks[ns] = socket(nsap->sa_family, SOCK_DGRAM
fcntl(EXT(statp).nssocks[ns], F_SETFD, FD_CLOEXEC);
if (EXT(statp).nssocks[ns] > highestFD) {
if (EXT(statp).nssocks[ns] < 0) {
connect(EXT(statp).nssocks[ns], nsap, nsaplen) < 0) {
s = EXT(statp).nssocks[ns];