summaryrefslogtreecommitdiff
path: root/source3/libsmb/namequery.c
diff options
context:
space:
mode:
authorSteve French <sfrench@samba.org>2001-11-07 23:01:44 +0000
committerSteve French <sfrench@samba.org>2001-11-07 23:01:44 +0000
commit2113e2ba08fc5e55c9f1b4d1f70d87683f48d4d3 (patch)
treef7563fa67d6097e8728f080b3ba8ce3080469bbb /source3/libsmb/namequery.c
parent823ab98ae3671e3b9d3ad653c1d7bd3924b53ebf (diff)
downloadsamba-2113e2ba08fc5e55c9f1b4d1f70d87683f48d4d3.tar.gz
samba-2113e2ba08fc5e55c9f1b4d1f70d87683f48d4d3.tar.bz2
samba-2113e2ba08fc5e55c9f1b4d1f70d87683f48d4d3.zip
Add function to add those hosts who have added msbrowse (domain master browsers)
(This used to be commit 3fd96a47543c268fd2828793df4006cc47a9e95b)
Diffstat (limited to 'source3/libsmb/namequery.c')
-rw-r--r--source3/libsmb/namequery.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 1e284aab19..18bab5e7fd 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -1176,3 +1176,11 @@ BOOL get_dc_list(BOOL pdc_only, char *group, struct in_addr **ip_list, int *coun
{
return internal_resolve_name(group, pdc_only ? 0x1B : 0x1C, ip_list, count);
}
+
+/********************************************************
+ Get the IP address list of the Domain Master Browsers
+ ********************************************************/
+BOOL get_dmb_list(struct in_addr **ip_list, int *count)
+{
+ return internal_resolve_name( MSBROWSE, 0x1, ip_list, count);
+}