param: harmonise wins parameters
authorAndrew Bartlett <abartlet@samba.org>
Thu, 12 Apr 2012 07:47:08 +0000 (17:47 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 16 Apr 2012 04:35:34 +0000 (14:35 +1000)
lib/param/loadparm.c
source3/param/loadparm.c

index 08d46b276546babb2ff61ea4e658d91199e66589..46bae44c54632507eecfcf15fb6facbf9f7eb74b 100644 (file)
@@ -978,26 +978,26 @@ static struct parm_struct parm_table[] = {
        },
 
        {
-               .label          = "wins server",
-               .type           = P_LIST,
+               .label          = "dns proxy",
+               .type           = P_BOOL,
                .p_class        = P_GLOBAL,
-               .offset         = GLOBAL_VAR(szWINSservers),
+               .offset         = GLOBAL_VAR(bWINSdnsProxy),
                .special        = NULL,
                .enum_list      = NULL
        },
        {
-               .label          = "wins support",
-               .type           = P_BOOL,
+               .label          = "wins server",
+               .type           = P_LIST,
                .p_class        = P_GLOBAL,
-               .offset         = GLOBAL_VAR(bWINSsupport),
+               .offset         = GLOBAL_VAR(szWINSservers),
                .special        = NULL,
                .enum_list      = NULL
        },
        {
-               .label          = "dns proxy",
+               .label          = "wins support",
                .type           = P_BOOL,
                .p_class        = P_GLOBAL,
-               .offset         = GLOBAL_VAR(bWINSdnsProxy),
+               .offset         = GLOBAL_VAR(bWINSsupport),
                .special        = NULL,
                .enum_list      = NULL
        },
index 9e34c5ad97872e9470cda51cc87555608eb586a3..17df977309bea686bb3ef0fe714413bc02d7883a 100644 (file)
@@ -3036,7 +3036,7 @@ static struct parm_struct parm_table[] = {
                .label          = "dns proxy",
                .type           = P_BOOL,
                .p_class        = P_GLOBAL,
-               .offset         = GLOBAL_VAR(bDNSproxy),
+               .offset         = GLOBAL_VAR(bWINSdnsProxy),
                .special        = NULL,
                .enum_list      = NULL,
                .flags          = FLAG_ADVANCED,
@@ -4891,7 +4891,7 @@ static void init_globals(bool reinit_globals)
        TALLOC_FREE(Globals.szInitLogonDelayedHosts);
        Globals.InitLogonDelay = 100; /* 100 ms default delay */
 
-       Globals.bDNSproxy = true;
+       Globals.bWINSdnsProxy = true;
 
        Globals.bAllowTrustedDomains = true;
        string_set(&Globals.szIdmapBackend, "tdb");
@@ -5213,7 +5213,7 @@ FN_GLOBAL_BOOL(disable_netbios, bDisableNetbios)
 FN_GLOBAL_BOOL(reset_on_zero_vc, bResetOnZeroVC)
 FN_GLOBAL_BOOL(log_writeable_files_on_exit, bLogWriteableFilesOnExit)
 FN_GLOBAL_BOOL(ms_add_printer_wizard, bMsAddPrinterWizard)
-FN_GLOBAL_BOOL(dns_proxy, bDNSproxy)
+FN_GLOBAL_BOOL(dns_proxy, bWINSdnsProxy)
 FN_GLOBAL_BOOL(we_are_a_wins_server, bWINSsupport)
 FN_GLOBAL_BOOL(wins_proxy, bWINSproxy)
 FN_GLOBAL_BOOL(local_master, bLocalMaster)