From 82beeea61927ad789ac9a728b09c32bb8d9a9a42 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 7 Jul 2010 12:40:49 +0200 Subject: options: Added option to bind a client to an ip address. Thanks to Donatello Boccaforno . --- include/libssh/libssh.h | 3 ++- include/libssh/session.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include/libssh') diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h index ed64ecaf..11cd7ee3 100644 --- a/include/libssh/libssh.h +++ b/include/libssh/libssh.h @@ -289,7 +289,8 @@ enum ssh_options_e { SSH_OPTIONS_COMPRESSION_C_S, SSH_OPTIONS_COMPRESSION_S_C, SSH_OPTIONS_HOSTKEYCHECK, - SSH_OPTIONS_PROXYCOMMAND + SSH_OPTIONS_PROXYCOMMAND, + SSH_OPTIONS_BINDADDR }; enum { diff --git a/include/libssh/session.h b/include/libssh/session.h index f4810e24..4de71b13 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -129,7 +129,7 @@ struct ssh_session_struct { #endif char *username; char *host; - char *bindaddr; /* TODO: check if needed */ + char *bindaddr; /* bind the client to an ip addr */ char *xbanner; /* TODO: looks like it is not needed */ struct ssh_list *identity; char *sshdir; -- cgit