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: mDNSResponder 58.8 on windows -- TTL handling?



Hi David,

On Jun 30, 2004, at 8:07 PM, David Brower wrote:

I've been "about to" implement mDNS on windows for a while, and one
of the stumbling blocks is correct receipt of the TTL field from an incoming
packet. Windows doesn't have recvmsg() and the CMSG interfaces, so
there is no direct way to get this. I was hoping to see that 58.8 did
something about this, but sadly, it does not, using recvfrom and not getting
a useful TTL value.


Now, I know the TTL value is problematic, but what ever interpretation
one wants to take, one still needs to get it somehow.

It seems to me the only possible solution on Windows is to use a raw
socket, and interpret all he UDP messages yourself as packets. This
is ugly, and painful, and probably bad for performance as you're basically
making the responder a packet sniffer. You could use a regular UDP socket
for sends, which might or might not be a simplificatoin.


Does my understanding above seem correct, or are there things that
I am missing?

Yes, your understanding is correct. We're having the same issue with Rendezvous for Windows. The current Technology Preview does not check the TTL because it doesn't seem to be possible on Windows. While the mDNS spec requires that you check the TTL, in reality, things still work if you don't. Mac OS X Jaguar, for example, never checked the TTL. For the time being, I'd recommend that you simply ignore this issue. We may have more to say about this in a few weeks.


Best Regards,

-Marc
_______________________________________________
rendezvous mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/rendezvous
Do not post admin requests to the list. They will be ignored.




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.