summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-12-11 00:08:17 +0000
committerAndrew Tridgell <tridge@samba.org>2000-12-11 00:08:17 +0000
commit2364d59cdcbed229884784684447c5690d6deb37 (patch)
tree903be48af43a32b82afbfa078121554591c31743
parentf449a5913603f94774472d248dc6979d65a271a6 (diff)
downloadsamba-2364d59cdcbed229884784684447c5690d6deb37.tar.gz
samba-2364d59cdcbed229884784684447c5690d6deb37.tar.bz2
samba-2364d59cdcbed229884784684447c5690d6deb37.zip
exposed the broadcast name resolution routine outside namequery.c
(This used to be commit 7d1d867acdc0f316d8de787e1f7fa27667ec4a6a)
-rw-r--r--source3/libsmb/namequery.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 81dadebd3b..a8cc2fcf3a 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -471,8 +471,8 @@ void endlmhosts(FILE *fp)
Resolve via "bcast" method.
*********************************************************/
-static BOOL resolve_bcast(const char *name, int name_type,
- struct in_addr **return_ip_list, int *return_count)
+BOOL name_resolve_bcast(const char *name, int name_type,
+ struct in_addr **return_ip_list, int *return_count)
{
int sock, i;
int num_interfaces = iface_count();
@@ -484,7 +484,7 @@ static BOOL resolve_bcast(const char *name, int name_type,
* "bcast" means do a broadcast lookup on all the local interfaces.
*/
- DEBUG(3,("resolve_bcast: Attempting broadcast lookup for name %s<0x%x>\n", name, name_type));
+ DEBUG(3,("name_resolve_bcast: Attempting broadcast lookup for name %s<0x%x>\n", name, name_type));
sock = open_socket_in( SOCK_DGRAM, 0, 3,
interpret_addr(lp_socket_address()), True );
@@ -714,7 +714,7 @@ static BOOL internal_resolve_name(const char *name, int name_type,
return True;
}
} else if(strequal( tok, "bcast")) {
- if (resolve_bcast(name, name_type, return_iplist, return_count)) {
+ if (name_resolve_bcast(name, name_type, return_iplist, return_count)) {
return True;
}
} else {