From 0a5770a78a82147142bb7e2ead914eef1b254724 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Sat, 3 Nov 2018 15:15:43 +0100 Subject: extcap: add option to set proxycommand to ssh sessions. sshdump and ciscodump have been updated to use it. Change-Id: I4e1e0d35f086d76c13264939bc4f14308cc88cfb Reviewed-on: https://code.wireshark.org/review/30496 Petri-Dish: Dario Lombardo Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- extcap/ssh-base.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'extcap/ssh-base.h') diff --git a/extcap/ssh-base.h b/extcap/ssh-base.h index 8c81ac5c50..bd1f7b3f82 100644 --- a/extcap/ssh-base.h +++ b/extcap/ssh-base.h @@ -34,11 +34,13 @@ { "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} + { "sshkey-passphrase", required_argument, NULL, OPT_SSHKEY_PASSPHRASE}, \ + { "proxycommand", required_argument, NULL, OPT_PROXYCOMMAND} /* Create a ssh connection using all the possible authentication menthods */ ssh_session create_ssh_connection(const char* hostname, const guint16 port, const char* username, - const char* password, const char* sshkey_path, const char* sshkey_passphrase, char** err_info); + const char* password, const char* sshkey_path, const char* sshkey_passphrase, const char* proxycommand, + char** err_info); /* Write a formatted message in the channel */ int ssh_channel_printf(ssh_channel channel, const char* fmt, ...); -- cgit v1.2.3