Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mDNS and private networks



Hi Jason,

On Feb 14, 2007, at 11:09 AM, Jason Walton wrote:

I know that previously bonjour had issues with wide area bonjour (dns-sd) and private networks (10.x). Can anyone tell me if this has been fixed in the latest version?

This issue is still around in the latest release, however, if you build your own mDNSResponder, you can hack it to mostly work. Here's the patch submitted by Ryan Williams...



Index: mDNSCore/uDNS.c =================================================================== RCS file: /cvs/apsl/mDNSResponder/mDNSCore/uDNS.c,v retrieving revision 1.229 diff -u -p -r1.229 uDNS.c --- uDNS.c 2006/03/02 22:03:41 1.229 +++ uDNS.c 2006/05/01 17:56:17 @@ -4332,7 +4332,8 @@ mDNSlocal void serviceRegistrationCallba srs->uDNS_info.lease = mDNSfalse; }

- if (srs->RR_SRV.resrec.rdata->u.srv.port.NotAnInteger && IsPrivateV4Addr(&m->uDNS_info.AdvertisedV4))
+ if (srs->RR_SRV.resrec.rdata->u.srv.port.NotAnInteger && IsPrivateV4Addr(&m->uDNS_info.AdvertisedV4) &&
+ !IsPrivateV4Addr(&srs->uDNS_info.ns))
{ srs->uDNS_info.state = regState_NATMap; StartNATPortMap(m, srs); }
else SendServiceRegistration(m, srs);
return;
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bonjour-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/bonjour-dev/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.