]> git.saurik.com Git - apple/mdnsresponder.git/blobdiff - mDNSPosix/mDNSPosix.c
mDNSResponder-108.6.tar.gz
[apple/mdnsresponder.git] / mDNSPosix / mDNSPosix.c
index 4b0ab0b3d496417b01fed71721ba779eefb2287a..ec5670adb7020590fd343b06b37ac0596f5b0782 100755 (executable)
        Change History (most recent first):
 
 $Log: mDNSPosix.c,v $
-Revision 1.75  2006/01/05 22:04:57  cheshire
-<rdar://problem/4399479> Log error message when send fails with "operation not permitted"
-
-Revision 1.74  2006/01/05 21:45:27  cheshire
-<rdar://problem/4400118> Fix uninitialized structure member in IPv6 code
-
 Revision 1.73  2005/10/11 21:31:46  cheshire
 <rdar://problem/4296177> Don't depend on IP_RECVTTL succeeding (not available on all platforms)
 
@@ -127,7 +121,7 @@ Revision 1.50  2004/08/11 01:20:20  cheshire
 Declare private local functions using "mDNSlocal"
 
 Revision 1.49  2004/07/26 22:49:31  ksekar
-<rdar://problem/3651409>: Feature #9516: Need support for NATPMP in client
+<rdar://problem/3651409>: Feature #9516: Need support for NAT-PMP in client
 
 Revision 1.48  2004/07/20 01:47:36  rpantos
 NOT_HAVE_SA_LEN applies to v6, too. And use more-portable s6_addr.
@@ -447,15 +441,11 @@ mDNSexport mStatus mDNSPlatformSendUDP(const mDNS *const m, const void *const ms
        if      (err > 0) err = 0;
        else if (err < 0)
                {
-        // Don't report EHOSTDOWN (i.e. ARP failure), ENETDOWN, or no route to host for unicast destinations
-               if (!mDNSAddressIsAllDNSLinkGroup(dst))
-                       if (errno == EHOSTDOWN || errno == ENETDOWN || errno == EHOSTUNREACH || errno == ENETUNREACH) return(mStatus_TransientErr);
-
                if (thisIntf)
-                       LogMsg("mDNSPlatformSendUDP got error %d (%s) sending packet to %#a on interface %#a/%s/%d",
+                       verbosedebugf("mDNSPlatformSendUDP got error %d (%s) sending packet to %#a on interface %#a/%s/%d",
                                                  errno, strerror(errno), dst, &thisIntf->coreIntf.ip, thisIntf->intfName, thisIntf->index);
                else
-                       LogMsg("mDNSPlatformSendUDP got error %d (%s) sending packet to %#a", errno, strerror(errno), dst);
+                       verbosedebugf("mDNSPlatformSendUDP got error %d (%s) sending packet to %#a", errno, strerror(errno), dst);
                }
 
        return PosixErrorToStatus(err);
@@ -936,7 +926,7 @@ mDNSlocal int SetupSocket(struct sockaddr *intfAddr, mDNSIPPort port, int interf
                        bindAddr6.sin6_family      = AF_INET6;
                        bindAddr6.sin6_port        = port.NotAnInteger;
                        bindAddr6.sin6_flowinfo    = 0;
-                       bindAddr6.sin6_addr        = in6addr_any; // Want to receive multicasts AND unicasts on this socket
+//                     bindAddr6.sin6_addr.s_addr = IN6ADDR_ANY_INIT; // Want to receive multicasts AND unicasts on this socket
                        bindAddr6.sin6_scope_id    = 0;
                        err = bind(*sktPtr, (struct sockaddr *) &bindAddr6, sizeof(bindAddr6));
                        if (err < 0) { err = errno; perror("bind"); fflush(stderr); }