Lines Matching refs:EXT

124 #define EXT(res) ((res)->_u._ext)
197 if (EXT(statp).ext == NULL)
326 if (statp->nscount == 0 || EXT(statp).ext == NULL) {
344 if (EXT(statp).nscount != 0) {
349 if (EXT(statp).nscount != statp->nscount)
355 (struct sockaddr *)&EXT(statp).ext->nsaddrs[ns])) {
360 if (EXT(statp).nssocks[ns] == -1)
363 if (getpeername(EXT(statp).nssocks[ns],
376 EXT(statp).nscount = 0;
386 if (EXT(statp).ext != NULL)
387 if (EXT(statp).ext->retrans.tv_sec != statp->retrans)
388 EXT(statp).ext->retrans = evConsTime(statp->retrans, 0);
394 if (EXT(statp).nscount == 0) {
396 EXT(statp).nstimes[ns] = RES_MAXTIME;
397 EXT(statp).nssocks[ns] = -1;
400 EXT(statp).ext->nsaddrs[ns].sin =
406 EXT(statp).nscount = statp->nscount;
424 if (EXT(statp).ext != NULL) {
425 inu = EXT(statp).ext->nsaddrs[0];
427 nsdefer = EXT(statp).ext->nsdefer[0];
431 fd = EXT(statp).nssocks[0];
432 nstime = EXT(statp).nstimes[0];
434 if (EXT(statp).ext != NULL) {
435 EXT(statp).ext->nsaddrs[ns] =
436 EXT(statp).ext->nsaddrs[ns + 1];
438 EXT(statp).ext->nsdefer[ns] =
439 EXT(statp).ext->nsdefer[ns + 1];
443 EXT(statp).nssocks[ns] = EXT(statp).nssocks[ns + 1];
444 EXT(statp).nstimes[ns] = EXT(statp).nstimes[ns + 1];
446 if (EXT(statp).ext != NULL) {
447 EXT(statp).ext->nsaddrs[lastns] = inu;
449 EXT(statp).ext->nsdefer[lastns] = nsdefer;
453 EXT(statp).nssocks[lastns] = fd;
454 EXT(statp).nstimes[lastns] = nstime;
670 if (!statp->nsaddr_list[n].sin_family && EXT(statp).ext) {
672 * - EXT(statp).ext->nsaddrs[n] holds an address that is larger
676 return (struct sockaddr *)(void *)&EXT(statp).ext->nsaddrs[n];
681 * EXT(statp).ext->nsaddrs[n].
910 if (EXT(statp).nssocks[ns] == -1) {
911 EXT(statp).nssocks[ns] = socket(nsap->sa_family, SOCK_DGRAM, 0);
912 if (EXT(statp).nssocks[ns] > highestFD) {
916 if (EXT(statp).nssocks[ns] < 0) {
943 if (connect(EXT(statp).nssocks[ns], nsap, nsaplen) < 0) {
953 s = EXT(statp).nssocks[ns];
973 if (EXT(statp).ext != NULL) {
974 nanoseconds = EXT(statp).ext->retrans.tv_sec;
976 nanoseconds += EXT(statp).ext->retrans.tv_nsec;