From 2cd87017bddf3c86bc28cf3ac6801f26b377f070 Mon Sep 17 00:00:00 2001 From: Apple Date: Fri, 16 Mar 2012 18:42:43 +0000 Subject: [PATCH] mDNSResponder-320.16.tar.gz --- Makefile | 2 +- mDNSCore/mDNS.c | 4 ++++ mDNSMacOSX/mDNSMacOSX.c | 9 +-------- mDNSShared/dns_sd.h | 2 +- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 2201ed0..d592d6a 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ include /Developer/Makefiles/pb_makefiles/platform.make -MVERS = "mDNSResponder-320.14.0" +MVERS = "mDNSResponder-320.16" DDNSWRITECONFIG = "$(DSTROOT)/Library/Application Support/Bonjour/ddnswriteconfig" diff --git a/mDNSCore/mDNS.c b/mDNSCore/mDNS.c index a07b8ee..305a1da 100755 --- a/mDNSCore/mDNS.c +++ b/mDNSCore/mDNS.c @@ -8078,6 +8078,8 @@ mDNSlocal mDNSBool ShouldSuppressQuery(mDNS *const m, domainname *qname, mDNSu16 { LogInfo("ShouldSuppressQuery: Query not suppressed for %##s, qtype %s, Local Address %.4a found", qname, DNSTypeName(qtype), &i->ip.ip.v4); + if (m->SleepState == SleepState_Sleeping) + LogInfo("ShouldSuppressQuery: Would have returned true earlier"); return mDNSfalse; } else if (iptype == mDNSAddrType_IPv6 && @@ -8088,6 +8090,8 @@ mDNSlocal mDNSBool ShouldSuppressQuery(mDNS *const m, domainname *qname, mDNSu16 { LogInfo("ShouldSuppressQuery: Query not suppressed for %##s, qtype %s, Local Address %.16a found", qname, DNSTypeName(qtype), &i->ip.ip.v6); + if (m->SleepState == SleepState_Sleeping) + LogInfo("ShouldSuppressQuery: Would have returned true earlier"); return mDNSfalse; } } diff --git a/mDNSMacOSX/mDNSMacOSX.c b/mDNSMacOSX/mDNSMacOSX.c index 07146cf..deb2c43 100644 --- a/mDNSMacOSX/mDNSMacOSX.c +++ b/mDNSMacOSX/mDNSMacOSX.c @@ -4488,13 +4488,6 @@ mDNSlocal mStatus UpdateInterfaceList(mDNS *const m, mDNSs32 utc) if (InfoSocket < 3 && errno != EAFNOSUPPORT) LogMsg("UpdateInterfaceList: InfoSocket error %d errno %d (%s)", InfoSocket, errno, strerror(errno)); #endif - // During wakeup, we may get a network change notification e.g., new addresses, before we get - // a wake notification. This means that we have not set AnnounceOwner. Registering interfaces with - // core would cause us to probe again which will conflict with the sleep proxy server, if we had - // registered with it when going to sleep. Hence, need to delay until we get the wake notification - - if (m->SleepState == SleepState_Sleeping) ifa = NULL; - while (ifa) { #if LIST_ALL_INTERFACES @@ -6544,7 +6537,7 @@ mDNSexport mDNSBool RecordReadyForSleep(mDNS *const m, AuthRecord *rr) { if (!AuthRecord_uDNS(rr)) return mDNStrue; - if (SameDomainLabel(rr->namestorage.c, (const mDNSu8 *)"\x0c_autotunnel6")) + if ((rr->resrec.rrtype == kDNSType_AAAA) && SameDomainLabel(rr->namestorage.c, (const mDNSu8 *)"\x0c_autotunnel6")) { LogInfo("RecordReadyForSleep: %s not ready for sleep", ARDisplayString(m, rr)); return mDNSfalse; diff --git a/mDNSShared/dns_sd.h b/mDNSShared/dns_sd.h index 45735c3..e431486 100644 --- a/mDNSShared/dns_sd.h +++ b/mDNSShared/dns_sd.h @@ -77,7 +77,7 @@ */ #ifndef _DNS_SD_H -#define _DNS_SD_H 3201400 +#define _DNS_SD_H 3201600 #ifdef __cplusplus extern "C" { -- 2.45.2