diff options
author | Andrew Bartlett <abartlet@samba.org> | 2011-04-26 09:49:08 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2011-04-26 17:16:34 +1000 |
commit | c18954775e53a0f4dec4e36234dc45559055f96d (patch) | |
tree | 1a77efa4d9a08da2e90c7e147552cd11bca44b68 /source3 | |
parent | 3a88d49d12fe6c74dffe3e8d82235c71511cc07c (diff) | |
download | samba-c18954775e53a0f4dec4e36234dc45559055f96d.tar.gz samba-c18954775e53a0f4dec4e36234dc45559055f96d.tar.bz2 samba-c18954775e53a0f4dec4e36234dc45559055f96d.zip |
libcli/dns Improve dns_hosts_file, using Samba3's struct dns_rr_srv
By reworking the 'fake DNS' file to use struct dns_rr_srv it should be
possible to emulate that resolver layer as well as the Samba4
sockaddr_storage* based layer. This will then give us a common DNS
emulation for 'make test'.
Andrew Bartlett
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/dns.h | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/source3/libads/dns.h b/source3/libads/dns.h index b747e97bb7..f53153ba26 100644 --- a/source3/libads/dns.h +++ b/source3/libads/dns.h @@ -20,42 +20,7 @@ #ifndef _ADS_DNS_H #define _ADS_DNS_H -/* DNS query section in replies */ - -struct dns_query { - const char *hostname; - uint16 type; - uint16 in_class; -}; - -/* DNS RR record in reply */ - -struct dns_rr { - const char *hostname; - uint16 type; - uint16 in_class; - uint32 ttl; - uint16 rdatalen; - uint8 *rdata; -}; - -/* SRV records */ - -struct dns_rr_srv { - const char *hostname; - uint16 priority; - uint16 weight; - uint16 port; - size_t num_ips; - struct sockaddr_storage *ss_s; /* support multi-homed hosts */ -}; - -/* NS records */ - -struct dns_rr_ns { - const char *hostname; - struct sockaddr_storage ss; -}; +#include "libcli/dns/dns.h" /* The following definitions come from libads/dns.c */ |