diff options
-rw-r--r-- | doc/sshdump.pod | 1 | ||||
-rw-r--r-- | extcap/sshdump.c | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/doc/sshdump.pod b/doc/sshdump.pod index c15ccf87dc..b60e458efd 100644 --- a/doc/sshdump.pod +++ b/doc/sshdump.pod @@ -27,6 +27,7 @@ S<[ B<--remote-password>=E<lt>passwordE<gt> ]> S<[ B<--sshkey>=E<lt>public key path<gt> ]> S<[ B<--remote-interface>=E<lt>interfaceE<gt> ]> S<[ B<--remote-capture-command>=E<lt>capture commandE<gt> ]> +S<[ B<--remote-sudo> ]> B<sshdump> S<B<--extcap-interfaces>> 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)"); |