Everyone now uses samba_sockaddr arrays.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <npower@samba.com>
DEBUG(6, ("resolve_and_ping_netbios: (cldap) looking for domain '%s'\n",
domain));
- status = get_sorted_dc_list_sa(talloc_tos(),
+ status = get_sorted_dc_list(talloc_tos(),
domain,
NULL,
&sa_list,
DEBUG(6, ("resolve_and_ping_dns: (cldap) looking for realm '%s'\n",
realm));
- status = get_sorted_dc_list_sa(talloc_tos(),
+ status = get_sorted_dc_list(talloc_tos(),
realm,
sitename,
&sa_list,
Returns a samba_sockaddr array.
*********************************************************************/
-NTSTATUS get_sorted_dc_list_sa(TALLOC_CTX *ctx,
+NTSTATUS get_sorted_dc_list(TALLOC_CTX *ctx,
const char *domain,
const char *sitename,
struct samba_sockaddr **sa_list_ret,
unsigned int *p_num_entries);
bool find_master_ip(const char *group, struct sockaddr_storage *master_ss);
bool get_pdc_ip(const char *domain, struct sockaddr_storage *pss);
-NTSTATUS get_sorted_dc_list_sa(TALLOC_CTX *ctx,
+NTSTATUS get_sorted_dc_list(TALLOC_CTX *ctx,
const char *domain,
const char *sitename,
struct samba_sockaddr **sa_list_ret,
/* get a list of all domain controllers */
- result = get_sorted_dc_list_sa(talloc_tos(),
+ result = get_sorted_dc_list(talloc_tos(),
domain,
NULL,
&sa_list,
d_printf("%s\n", pdc_str);
sitename = sitename_fetch(talloc_tos(), domain);
- status = get_sorted_dc_list_sa(talloc_tos(),
+ status = get_sorted_dc_list(talloc_tos(),
domain,
sitename,
&sa_list,
/* We need to make sure we know the local site before
doing any DNS queries, as this will restrict the
- get_sorted_dc_list_sa() call below to only fetching
+ get_sorted_dc_list() call below to only fetching
DNS records for the correct site. */
/* Find any DC to get the site record.
if (sitename) {
/* Do the site-specific AD dns lookup first. */
- (void)get_sorted_dc_list_sa(mem_ctx,
+ (void)get_sorted_dc_list(mem_ctx,
domain->alt_name,
sitename,
&sa_list,
}
/* Now we add DCs from the main AD DNS lookup. */
- (void)get_sorted_dc_list_sa(mem_ctx,
+ (void)get_sorted_dc_list(mem_ctx,
domain->alt_name,
NULL,
&sa_list,
/* Try standard netbios queries if no ADS and fall back to DNS queries
* if alt_name is available */
if (*num_dcs == 0) {
- (void)get_sorted_dc_list_sa(mem_ctx,
+ (void)get_sorted_dc_list(mem_ctx,
domain->name,
NULL,
&sa_list,
false);
if (salist_size == 0) {
if (domain->alt_name != NULL) {
- (void)get_sorted_dc_list_sa(mem_ctx,
+ (void)get_sorted_dc_list(mem_ctx,
domain->alt_name,
NULL,
&sa_list,