This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
nss_dns addons and thread safety
- From: George Beshers <gbeshers at comcast dot net>
- To: libc-alpha <libc-alpha at sources dot redhat dot com>
- Date: Tue, 22 Jun 2004 11:30:40 -0400
- Subject: nss_dns addons and thread safety
This concerns creating an add-on to resolv/nss_dns to support multicastdns
as used in Apple's Rendezvous, i.e.,
http://files.multicastdns.org/draft-cheshire-dnsext-multicastdns.txt
1) This uses multicast on 5353 and/or a local stream created using
/var/run/mDNSresponder to a local mDNSResponder server. Other
than patching is there a good way to add thread-specific state (e.g.,
by extending _res) so that the socket can remain open between calls?
I think that all I really need to store is the file descriptor.
2) Ideally, I would like to re-use the domain searching code but I don't
see a hook into the send mechanism that would allow me to do that.
[I don't feel that qhook and rhook are appropriate since the user might
doing something with them.] Suggestions welcome.
3) Finally, IPv6 status/todo list?
Thanks in advance,
George