summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/cmdline/popt_common.c5
-rw-r--r--source4/lib/popt_common.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/cmdline/popt_common.c b/source4/lib/cmdline/popt_common.c
index ccdecc91cc..8a6cce7e5b 100644
--- a/source4/lib/cmdline/popt_common.c
+++ b/source4/lib/cmdline/popt_common.c
@@ -94,6 +94,10 @@ static void popt_common_callback(poptContext con,
case 'i':
lp_set_cmdline("netbios scope", arg);
break;
+
+ case 'm':
+ lp_set_cmdline("max protocol", arg);
+ break;
}
}
@@ -104,6 +108,7 @@ struct poptOption popt_common_connection[] = {
{ "netbiosname", 'n', POPT_ARG_STRING, NULL, 'n', "Primary netbios name", "NETBIOSNAME" },
{ "workgroup", 'W', POPT_ARG_STRING, NULL, 'W', "Set the workgroup name", "WORKGROUP" },
{ "scope", 'i', POPT_ARG_STRING, NULL, 'i', "Use this Netbios scope", "SCOPE" },
+ { "maxprotocol", 'm', POPT_ARG_STRING, NULL, 'm', "Set max protocol level", "MAXPROTOCOL" },
POPT_TABLEEND
};
diff --git a/source4/lib/popt_common.c b/source4/lib/popt_common.c
index ccdecc91cc..8a6cce7e5b 100644
--- a/source4/lib/popt_common.c
+++ b/source4/lib/popt_common.c
@@ -94,6 +94,10 @@ static void popt_common_callback(poptContext con,
case 'i':
lp_set_cmdline("netbios scope", arg);
break;
+
+ case 'm':
+ lp_set_cmdline("max protocol", arg);
+ break;
}
}
@@ -104,6 +108,7 @@ struct poptOption popt_common_connection[] = {
{ "netbiosname", 'n', POPT_ARG_STRING, NULL, 'n', "Primary netbios name", "NETBIOSNAME" },
{ "workgroup", 'W', POPT_ARG_STRING, NULL, 'W', "Set the workgroup name", "WORKGROUP" },
{ "scope", 'i', POPT_ARG_STRING, NULL, 'i', "Use this Netbios scope", "SCOPE" },
+ { "maxprotocol", 'm', POPT_ARG_STRING, NULL, 'm', "Set max protocol level", "MAXPROTOCOL" },
POPT_TABLEEND
};