diff options
author | Gerald Carter <jerry@samba.org> | 2006-08-24 12:13:57 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:47 -0500 |
commit | 8cac7c139908eff0124a4a6f9d25f3b3fe10a254 (patch) | |
tree | 5dd369db8f3efdf5fa1ca6186b3d40c4db0a9eeb /source3/include | |
parent | a5a69ec15013cade97ef95c4e45a44063667dbe4 (diff) | |
download | samba-8cac7c139908eff0124a4a6f9d25f3b3fe10a254.tar.gz samba-8cac7c139908eff0124a4a6f9d25f3b3fe10a254.tar.bz2 samba-8cac7c139908eff0124a4a6f9d25f3b3fe10a254.zip |
r17795: Finally track down the "ads_connect: Interrupted system call"
error. Fix our DNS SRV lookup code to deal with multi-homed hosts.
We were noly remembering one IP address per host from the Additional
records section in the SRV response which could have been an unreachable
address.
(This used to be commit 899179d2b9fba13cc6f4dab6efc3c22e44e062bc)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/ads_dns.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/include/ads_dns.h b/source3/include/ads_dns.h index 74762a9242..6c3430e21b 100644 --- a/source3/include/ads_dns.h +++ b/source3/include/ads_dns.h @@ -47,10 +47,11 @@ struct dns_rr_srv { uint16 priority; uint16 weight; uint16 port; - struct in_addr ip; + size_t num_ips; + struct in_addr *ips; /* support multi-homed hosts */ }; -/* SRV records */ +/* NS records */ struct dns_rr_ns { const char *hostname; |