s3-param: Rename lp_dns_proxy() -> lp_wins_dns_proxy() for clarity
authorAndrew Bartlett <abartlet@samba.org>
Mon, 28 May 2012 06:51:47 +0000 (16:51 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 30 May 2012 02:15:11 +0000 (04:15 +0200)
This avoids some confusion now we have a DNS server as well.

Andrew Bartlett

source3/include/proto.h
source3/nmbd/nmbd.c
source3/nmbd/nmbd_winsserver.c
source3/param/loadparm.c

index 31c709dd9b78a3561f80f09c50863b439dd41af2..b7bb95998b4378b35378d810a192e2f8b1a40120 100644 (file)
@@ -1177,7 +1177,7 @@ bool lp_disable_netbios(void);
 bool lp_reset_on_zero_vc(void);
 bool lp_log_writeable_files_on_exit(void);
 bool lp_ms_add_printer_wizard(void);
-bool lp_dns_proxy(void);
+bool lp_wins_dns_proxy(void);
 bool lp_we_are_a_wins_server(void);
 bool lp_wins_proxy(void);
 bool lp_local_master(void);
index bb264d2274009f8dd46fe069435707683d5b7f9f..98a531026a26835c3885df4417cbe321d04716c8 100644 (file)
@@ -928,7 +928,7 @@ static bool open_sockets(bool isdaemon, int port)
 #ifndef SYNC_DNS
        /* Setup the async dns. We do it here so it doesn't have all the other
                stuff initialised and thus chewing memory and sockets */
-       if(lp_we_are_a_wins_server() && lp_dns_proxy()) {
+       if(lp_we_are_a_wins_server() && lp_wins_dns_proxy()) {
                start_async_dns(msg);
        }
 #endif
index 0a06ebea66798751e8a8d56e025ae82de0b4de32..ff5fae70b1252d49f2849592cd9a13c5f5d5ae01 100644 (file)
@@ -2092,7 +2092,7 @@ void wins_process_name_query_request(struct subnet_record *subrec,
         * Name not found in WINS - try a dns query if it's a 0x20 name.
         */
 
-       if(lp_dns_proxy() && ((question->name_type == 0x20) || question->name_type == 0)) {
+       if(lp_wins_dns_proxy() && ((question->name_type == 0x20) || question->name_type == 0)) {
                DEBUG(3,("wins_process_name_query: name query for name %s not found - doing dns lookup.\n",
                                nmb_namestr(question) ));
 
index 88252ef0473c8c8195bcff0e6c517498847199d3..919bfcb85068e057481bb88bd6bbca01804a2b39 100644 (file)
@@ -5084,7 +5084,6 @@ FN_GLOBAL_BOOL(debug_uid, bDebugUid)
 FN_GLOBAL_BOOL(defer_sharing_violations, bDeferSharingViolations)
 FN_GLOBAL_BOOL(disable_netbios, bDisableNetbios)
 FN_GLOBAL_BOOL(_disable_spoolss, bDisableSpoolss)
-FN_GLOBAL_BOOL(dns_proxy, bWINSdnsProxy)
 FN_GLOBAL_BOOL(enable_asu_support, bASUSupport)
 FN_GLOBAL_BOOL(enable_core_files, bEnableCoreFiles)
 FN_GLOBAL_BOOL(enable_privileges, bEnablePrivileges)
@@ -5139,6 +5138,7 @@ FN_GLOBAL_BOOL(winbind_use_default_domain, bWinbindUseDefaultDomain)
 FN_GLOBAL_BOOL(wins_proxy, bWINSproxy)
 FN_GLOBAL_CONST_STRING(afs_username_map, szAfsUsernameMap)
 FN_GLOBAL_CONST_STRING(dedicated_keytab_file, szDedicatedKeytabFile)
+FN_GLOBAL_BOOL(wins_dns_proxy, bWINSdnsProxy)
 FN_GLOBAL_CONST_STRING(dnsdomain, szDnsDomain)
 FN_GLOBAL_CONST_STRING(dos_charset, dos_charset)
 FN_GLOBAL_CONST_STRING(guestaccount, szGuestaccount)