exposed the broadcast name resolution routine outside namequery.c
authorAndrew Tridgell <tridge@samba.org>
Mon, 11 Dec 2000 00:08:17 +0000 (00:08 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 11 Dec 2000 00:08:17 +0000 (00:08 +0000)
(This used to be commit 7d1d867acdc0f316d8de787e1f7fa27667ec4a6a)

source3/libsmb/namequery.c

index 81dadebd3b060747b544b0cd1ca853a997ac5277..a8cc2fcf3a2dbf51396010638d2f59ac00f0eda4 100644 (file)
@@ -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 {