aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDario Lombardo <lomato@gmail.com>2016-03-17 10:40:59 +0100
committerRoland Knall <rknall@gmail.com>2016-03-24 20:15:26 +0000
commit5861c12d1bdcd0effa71e068485e4312e8a057a4 (patch)
treeb51e3b0b7f14e67fed4236885445a8c9c2b58925
parentcb084964187af430394f75f32df1015e2c35e076 (diff)
sshdump: use arg define.
Change-Id: I49ccfc3f616d2d6660c46d6a47d2409e25ad842a Reviewed-on: https://code.wireshark.org/review/14512 Petri-Dish: Roland Knall <rknall@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Roland Knall <rknall@gmail.com>
-rw-r--r--extcap/sshdump.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/extcap/sshdump.c b/extcap/sshdump.c
index d289229f88..92c6a0f4fd 100644
--- a/extcap/sshdump.c
+++ b/extcap/sshdump.c
@@ -75,16 +75,8 @@ static struct option longopts[] = {
{ "help", no_argument, NULL, OPT_HELP},
{ "version", no_argument, NULL, OPT_VERSION},
{ "verbose", optional_argument, NULL, OPT_VERBOSE},
- { "remote-host", required_argument, NULL, OPT_REMOTE_HOST},
- { "remote-port", required_argument, NULL, OPT_REMOTE_PORT},
- { "remote-username", required_argument, NULL, OPT_REMOTE_USERNAME},
- { "remote-password", required_argument, NULL, OPT_REMOTE_PASSWORD},
- { "remote-interface", required_argument, NULL, OPT_REMOTE_INTERFACE},
+ SSH_BASE_OPTIONS,
{ "remote-capture-bin", required_argument, NULL, OPT_REMOTE_CAPTURE_BIN},
- { "remote-filter", required_argument, NULL, OPT_REMOTE_FILTER},
- { "remote-count", required_argument, NULL, OPT_REMOTE_COUNT},
- { "sshkey", required_argument, NULL, OPT_SSHKEY},
- { "sshkey-passphrase", required_argument, NULL, OPT_SSHKEY_PASSPHRASE},
{ 0, 0, 0, 0}
};