]> git.saurik.com Git - apple/mdnsresponder.git/commitdiff
mDNSResponder-320.16.tar.gz mac-os-x-1074 v320.16
authorApple <opensource@apple.com>
Fri, 16 Mar 2012 18:42:43 +0000 (18:42 +0000)
committerApple <opensource@apple.com>
Fri, 16 Mar 2012 18:42:43 +0000 (18:42 +0000)
Makefile
mDNSCore/mDNS.c
mDNSMacOSX/mDNSMacOSX.c
mDNSShared/dns_sd.h

index 2201ed0190497039a2bf0e2683e693e24ee684e0..d592d6a2485adb60c677502349d12265cfe178dd 100644 (file)
--- 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"
 
index a07b8ee6389cbdb44d3126a0d3f1ef54ac0f077e..305a1dae458ce858a0aae6f4b0a0707d853a28af 100755 (executable)
@@ -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;
                                }
                        }
index 07146cf44bb1a945410115a739abec332c3d258f..deb2c43891a962182d4fb15d0f63a572b4c2f8d5 100644 (file)
@@ -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;
index 45735c38a06162c4db04ada5efeeffd0a38d1732..e431486c5d7322fa91f8a848787b5328d9c80d4a 100644 (file)
@@ -77,7 +77,7 @@
  */
 
 #ifndef _DNS_SD_H
-#define _DNS_SD_H 3201400
+#define _DNS_SD_H 3201600
 
 #ifdef  __cplusplus
     extern "C" {