summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-27 04:00:21 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-27 04:00:21 +0000
commit0b1b3850a084be52fcb2abc5985cf6b06e7a54fa (patch)
tree394d0639f7650d8b558fdfa4ec485da9ec7584f7 /source4/lib
parent3e0501082cc5e5715dd315f890560a5759331df3 (diff)
downloadsamba-0b1b3850a084be52fcb2abc5985cf6b06e7a54fa.tar.gz
samba-0b1b3850a084be52fcb2abc5985cf6b06e7a54fa.tar.bz2
samba-0b1b3850a084be52fcb2abc5985cf6b06e7a54fa.zip
added -m for 'max protocol' as a standard option
(This used to be commit 8fe4058711c12b8116982357723c36e862aa0bef)
Diffstat (limited to 'source4/lib')
-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
};