Draft #3: DNS SRV lookups [was Re: [PATCH] SAMBA_3_0 : remove ldap_domain2hostlist()]

Gerald (Jerry) Carter jerry at samba.org
Fri May 5 16:14:22 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gerald (Jerry) Carter wrote:
> simo wrote:
>>> Jerry,
>>> there are problems with url you posted.
>>>
>>> http://www.samba.org/~jerry/bzr/slag/unix/dns_rr-srv.c
> 
> Sorry.
> 
> http://www.samba.org/~jerry/bzr/slag/unix/dns_rr_srv.c
> 
> I've got a problem with it on Solaris right now (memory
> alignment).  Bill Jojo did a compile test on AIX for me.
> The linux version works fine so far.

New version posted (attached here).

* Handles All record sections in the DNS reply now.
* Fixes a bug in grabbing the IP address in the A
  records in the additional records section on sparc.
* Simple sorting based on priority and weight.

Unless someone has a major objection, I'm going to
check this in later today.  Compile tested on Linux x86,
Solaris 9 (sparc), and AIX.






cheers, jerry
=====================================================================
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEW3neIR7qMdg1EfYRAgV/AJ9pNhJnFDyuREzJyffPXM3u9gTcUwCfd39V
u9VM4INFAcfU0L9KMBrBB4Q=
=DrZ+
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dns_rr_srv.c
Type: text/x-csrc
Size: 11332 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20060505/b0f59a88/dns_rr_srv.bin


More information about the samba-technical mailing list