lib/param: Merge DNS parameters with source3 param
authorAndrew Bartlett <abartlet@samba.org>
Mon, 23 Jul 2012 23:04:35 +0000 (09:04 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 24 Jul 2012 09:01:18 +0000 (11:01 +0200)
This will make the merge of the whole table smoother.

Based on an earlier patch
Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>

Andrew Bartlett

lib/param/loadparm.c

index d0aa0ae42c7dea8a52c2339711e95875adcd2730..a3e5bd2f67e765cddc09a655d7d7fefec047335b 100644 (file)
@@ -1174,15 +1174,34 @@ static struct parm_struct parm_table[] = {
                .enum_list      = NULL,
                .flags          = FLAG_ADVANCED,
        },
+
+       {N_("DNS options"), P_SEP, P_SEPARATOR},
        {
-               .label          = "rndc command",
-               .type           = P_CMDLIST,
+               .label          = "allow dns updates",
+               .type           = P_ENUM,
                .p_class        = P_GLOBAL,
-               .offset         = GLOBAL_VAR(szRNDCCommand),
+               .offset         = GLOBAL_VAR(allow_dns_updates),
+               .special        = NULL,
+               .enum_list      = enum_dns_update_settings,
+               .flags          = FLAG_ADVANCED,
+       },
+       {
+               .label          = "dns forwarder",
+               .type           = P_STRING,
+               .p_class        = P_GLOBAL,
+               .offset         = GLOBAL_VAR(dns_forwarder),
                .special        = NULL,
                .enum_list      = NULL,
                .flags          = FLAG_ADVANCED,
        },
+       {
+               .label          = "dns recursive queries",
+               .type           = P_BOOL,
+               .p_class        = P_GLOBAL,
+               .offset         = GLOBAL_VAR(dns_recursive_queries),
+               .special        = NULL,
+               .enum_list      = NULL
+       },
        {
                .label          = "dns update command",
                .type           = P_CMDLIST,
@@ -1202,30 +1221,22 @@ static struct parm_struct parm_table[] = {
                .flags          = FLAG_ADVANCED,
        },
        {
-               .label          = "allow dns updates",
-               .type           = P_ENUM,
-               .p_class        = P_GLOBAL,
-               .offset         = GLOBAL_VAR(allow_dns_updates),
-               .special        = NULL,
-               .enum_list      = enum_dns_update_settings,
-               .flags          = FLAG_ADVANCED,
-       },
-       {
-               .label          = "dns forwarder",
-               .type           = P_STRING,
+               .label          = "rndc command",
+               .type           = P_CMDLIST,
                .p_class        = P_GLOBAL,
-               .offset         = GLOBAL_VAR(dns_forwarder),
+               .offset         = GLOBAL_VAR(szRNDCCommand),
                .special        = NULL,
                .enum_list      = NULL,
                .flags          = FLAG_ADVANCED,
        },
        {
-               .label          = "dns recursive queries",
+               .label          = "multicast dns register",
                .type           = P_BOOL,
                .p_class        = P_GLOBAL,
-               .offset         = GLOBAL_VAR(dns_recursive_queries),
+               .offset         = GLOBAL_VAR(bMulticastDnsRegister),
                .special        = NULL,
-               .enum_list      = NULL
+               .enum_list      = NULL,
+               .flags          = FLAG_ADVANCED | FLAG_GLOBAL,
        },
 
        {N_("AD DC options"), P_SEP, P_SEPARATOR},