aboutsummaryrefslogtreecommitdiffstats
path: root/extcap
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2019-06-19 14:15:34 +0200
committerAnders Broman <a.broman58@gmail.com>2019-06-19 13:00:55 +0000
commited34c3de14fbaed36ce3243668b28af411dfb085 (patch)
tree3a186589f91deb9fb3e8a07365db0676bbe7b72b /extcap
parentdd15b203c7ec8a8ec5c930cf018c838991ee3182 (diff)
sshdump: fix bug in --remote-sudo.
Fix documentation as well. Bug: 15845 Change-Id: I1b4e50c21887afa6a60b76de6cc169a1d0b5067a Reviewed-on: https://code.wireshark.org/review/33658 Petri-Dish: Dario Lombardo <lomato@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'extcap')
-rw-r--r--extcap/sshdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extcap/sshdump.c b/extcap/sshdump.c
index 7f91ff231a..84326c1ee2 100644
--- a/extcap/sshdump.c
+++ b/extcap/sshdump.c
@@ -59,7 +59,7 @@ static struct option longopts[] = {
{ "version", no_argument, NULL, OPT_VERSION},
SSH_BASE_OPTIONS,
{ "remote-capture-command", required_argument, NULL, OPT_REMOTE_CAPTURE_COMMAND},
- { "remote-sudo", required_argument, NULL, OPT_REMOTE_SUDO },
+ { "remote-sudo", no_argument, NULL, OPT_REMOTE_SUDO },
{ "remote-noprom", no_argument, NULL, OPT_REMOTE_NOPROM },
{ 0, 0, 0, 0}
};
@@ -396,7 +396,7 @@ int main(int argc, char *argv[])
extcap_help_add_option(extcap_conf, "--proxycommand <proxy command>", "the command to use as proxy the the ssh connection");
extcap_help_add_option(extcap_conf, "--remote-interface <iface>", "the remote capture interface");
extcap_help_add_option(extcap_conf, "--remote-capture-command <capture command>", "the remote capture command");
- extcap_help_add_option(extcap_conf, "--remote-sudo yes", "use sudo on the remote machine to capture");
+ extcap_help_add_option(extcap_conf, "--remote-sudo", "use sudo on the remote machine to capture");
extcap_help_add_option(extcap_conf, "--remote-noprom", "don't use promiscuous mode on the remote machine");
extcap_help_add_option(extcap_conf, "--remote-filter <filter>", "a filter for remote capture (default: don't "
"listen on local interfaces IPs)");